Line Chart

更新时间:
复制 MD 格式

Line charts visualize how data changes over time — for example, tracking product sales to predict future performance. Learn how to add data to a line chart and configure its style.

Prerequisites

You have created a dashboard. For more information, see Create a dashboard.

Limitations

A line chart consists of a value axis (measure), a category axis (dimension), and a color legend (dimension):

  • The category axis requires at least one dimension, such as date, province, or product type.

  • The value axis requires at least one measure, such as order quantity.

  • The color legend supports up to one dimension, such as shipping method.

    Note

    If you use multiple measures on the value axis and add a dimension to the color legend, you must enable the in-chart metric filter to switch between measures.

  • The split dimension supports up to one dimension, such as product type or region.

Overview

Use Cases

  • Trend widgets display continuous data over time, ideal for showing patterns at regular intervals.

  • Line charts reveal increases, decreases, periodic changes, and exponential growth.

Benefits

  • Powerful computing features: YoY & MoM comparison, cumulative calculation, gridlines, trendlines, forecasting, anomaly detection, and fluctuation analysis.

  • Multiple visualization types — curve charts and line charts — with configurable labels, legends, and scroll bars.

  • Compare data across periods and add specific value labels to your chart.

Example

image

Chart Field Configuration

  1. On the Data tab, select the dimension and measure fields you need:

    • From the Dimension list, double-click or drag product_type to the Category Axis/Dimension area.

    • From the Measure list, double-click or drag profit amount and price to the Value Axis/Measure area.

    Note

    You can enable auto-refresh to update the chart data automatically.

  2. Click Update to refresh the chart.

    image

  3. (Optional) Add another dimension field to Split/Dimension to better visualize data trends in facet mode.

    Note
    • You can add only one split dimension field. Facet mode has the following limitations:

      • Fields: For fields in the Split/Dimension area, advanced calculations support only TopN or None.

      • Style: The axis settings do not support a dual Y-axis, and the auxiliary display options do not support a navigator.

      • Analysis: Analysis is limited to data interaction. Advanced settings, analytical alerts, annotations, and smart insights are not supported.

    • Too many facets can cause page lag. For optimal performance, keep the number of facets at 500 or less.

    image

Configure Chart Styles

Configure line chart styles on the Style tab. For general chart style configurations, see Configure the chart title area.

Plotting Area

Configure line chart styles in the plotting area section.

image

Parameter

Description

Color scheme

Sets the color scheme for the lines. You can use a system color scheme or customize the colors.111

Chart type switch

Sets the chart type. The supported types are line chart, area chart, stacked area chart, and 100% stacked area chart.

Line type

Options: smooth and straight.

Line style

Sets the style and thickness of the lines.

Show markers

Toggles the display of markers on data points and sets their shape.

image

Null value handling

Specifies how to handle null values. The available options are Skip, Set to 0, and Break the line.

Default mobile selection

After you enable this option, you can set the Default selection to Last global dimension value or Last dimension value of a specified series.

Facet

In facet mode, use the Facet section to configure the chart layout and styles.

Note

Facet mode is active only when you add a field to the Split/Dimension area.

image

Parameter

Description

Layout style

Sets the chart layout. Options: Single-column comparison and Grid.

Shared axis

Specifies whether the charts share the same axis.

111

Show separator line

Specifies whether to show a separator line between charts.

If you enable this option, you can configure the color and style of the separator line.111

Number of columns

When Layout style is set to Grid, you can set the number of columns in which to arrange the charts.

The default setting is automatic, but you can also customize the number of columns based on your needs.111

Note
  • You must configure the number of columns for PC and mobile separately. You can switch between devices by using the image icon at the top of the page.

  • The range is 1 to 6 columns for PC, and 1 to 3 for mobile.

Minimum facet size

Sets the minimum width and height for each chart. The available options vary depending on the layout style.

  • Single-column comparison, or Grid with automatic columns: You can only configure the minimum width of the facet.

  • Grid with custom columns: You can configure both the minimum width and height of the facet.

Row and column spacing

Sets the spacing between rows and columns of the charts. The available options vary depending on the layout style.

  • Single-column comparison: You can only configure the column spacing between charts.

  • Grid: You can configure both row and column spacing between charts.

Split label

Position

Sets the display position of the dimension value label. Options: Above chart or Below chart.111

Text

Sets the font color and style of the dimension value label.111

Alignment

Sets the alignment of the dimension value label.

Axes

In the Axes section, configure the axis styles. By default, axes are displayed.

You can select Show dual y-axis. This setting takes effect only when you add two or more measures. Selecting this option adds a Right Y-axis section under Axes.

Note
  • You need to configure the Right Y-axis only if you select Show dual y-axis. The parameters are the same as those for the Left Y-axis.

  • The Show dual y-axis feature is not supported in facet mode.

image..png

Name

Parameter

Description

X-axis

Show x-axis

Specifies whether to show the x-axis.

Show title and unit

Specifies whether to show the Axis Title and Unit on the x-axis.

Show axis labels

Specifies whether to show labels on the x-axis, and configures the axis label display rule and text style.

Content to display

Sets the displayed content to some or all dimensions.

image.png

Show ticks

Specifies whether to show ticks on the x-axis.

Show axis line

Specifies whether to show the x-axis line, including its line type, width, and color.

Show gridlines

Specifies whether to show gridlines for the x-axis, including their line type, width, and color.

Left y-axis

Invert y-axis scale

Inverts the y-axis scale.

Y轴刻度翻转..gif

Show left y-axis

Specifies whether to show the left y-axis.

Show title and unit

Specifies whether to show the Axis Title and Unit.

Show axis labels

Specifies whether to show labels on the y-axis. If enabled, you can also set the axis label display format and text style. For the display format, you can select Auto or Custom mode.

  • The default is Auto mode. In this mode, the axis labels inherit the data display format configuration of the measure field. If there are multiple measure fields, the display format of the first field is used.

  • In Custom mode, click the image icon to open the Data Display Format Settings dialog box and configure the data format as needed. For information about the options in the dialog box, see Data display format > Custom.

Show ticks

Specifies whether to show ticks on the left y-axis.

Show axis line

Specifies whether to show the left y-axis line, including its line type, width, and color.

Show gridlines

Specifies whether to show gridlines for the left y-axis, including their line type, width, and color.

Axis value range and interval

  • Supports Auto and manual setting of the Maximum/Minimum values for the left y-axis labels and tick range.

  • Supports setting a Custom interval by step size or number of divisions.

线图-坐标轴.gif

Legend

Configure legend display and style in the Legend section.

  • PC settings

    image

    Parameter

    Description

    Style

    Sets the style of the legend icon. Options: Auto, Line only, and Line and marker.111

    Note
    • When you select Line and marker, the legend synchronizes with the marker style set in the chart. If no marker style is configured, a solid circle is displayed by default.

    • When you select Scale legend symbol with text in Theme Design > Common Content Style, the size and line thickness of the legend icon will be adjusted proportionally based on the chart's line thickness and legend text size.

    Position

    Sets the display position and alignment of the legend on a PC.

    • When the display position is set to Top or Bottom: you can choose left, center, or right alignment.

    • When the display position is set to Left or Right: you can choose top, center, or bottom alignment. You can also set the distance between the legend and the chart content.

    Text

    Sets the text style of the legend on a PC, including font color, size, weight, and italics.

  • Mobile settings

    image

    Parameter

    Description

    Style

    Sets the style of the legend icon. Options: Auto, Line only, and Line and marker.

    Position

    Sets the display position and alignment of the legend on a mobile device.

    • When the display position is set to Top or Bottom: you can choose left, center, or right alignment.

    • When the display position is set to Left or Right: you can choose top, center, or bottom alignment. You can also set the distance between the legend and the chart content.

    Note

    When the position is set to Top, you can enable labels below the legend.

    Text

    Sets the text style for the measure name in the legend on a mobile device, including font color, size, weight, and italics.

    Content under legend

    When Position is set to Top, click the image icon to enable labels below the legend.

    Content

    Sets the data content to display in the labels below the legend. You can choose to show percentage or total.

    • Percentage: The percentage of a data point out of the total for the current dimension. For example, the percentage of profit amount out of total revenue for office supplies. When you choose to display percentage data, you can also set the number of decimal places to 0, 1, or 2 in Percentage Decimal Places.

    • Total: The sum of all measures for the current dimension. For example, the total sales amount for all regions in 2025.

    Style

    Sets the layout of the labels under the legend. The following options are available:

    • Evenly split across multiple rows: Automatically arranges the labels in equal divisions based on the number of columns set in Max items per row and the number of rows set in Max rows per page.image

    • Single-row layout: All label content is displayed in a single row.image

    • Plain text: Displays only text content without icons, and the text color matches the line color of the corresponding measure in the chart.image

    When not selected, show metric as

    When Style is set to Evenly split across multiple rows or Single-row layout, you can specify how to display the metric for unselected legend items. You can choose to display it as "-" or blank.111

    Percentage position

    When Percentage is selected for Content and Style is set to Evenly split across multiple rows or Single-row layout, you can set the display position of the percentage data. Options: Below or to the right of the value label.111

    Text style

    When Style is set to Evenly split across multiple rows or Single-row layout, you can set the style of the value text.

    If you choose to display Percentage data in the content, you can set the format for the percentage text to distinguish it from the value label content, enhancing the visual difference between data types.

    Show full text

    When Style is set to Evenly split across multiple rows, long measure names might be truncated. If you need to display the full measure name, you can select Show Full Text.

    Show tooltip fields

    When selected, the fields you configure in the Tooltip/Measure area of the fields panel will be displayed in the legend area.image

    Note

    Displaying tooltip fields is not supported when the chart is split by a dimension value (that is, when the color legend is a dimension).

Data Labels

Configure data label display and style in the Data labels section.

image

Parameter

Description

Content

When the Chart type in the plotting area section is set to stacked area chart or 100% stacked area chart, you can select the data content to display in the data labels. Options include Measure, Percentage, and Total.

When you choose to display Percentage data, you can also set the number of decimal places to 0, 1, or 2 in Percentage Decimal Places.image

Show all

Specifies whether to display all data labels. When enabled, the system intelligently adjusts label positions to prevent overlap. If there are too many data labels, some may not be displayed if they extend beyond the axis area. You can also choose to Allow data labels to overlap.

Position

Sets the display position of the labels.

Text

Sets the text style of the labels.

Tooltip

In the Tooltip section, click the image icon to enable and configure tooltips.

  • PC settings

    image

    Parameter

    Description

    Display mode

    Sets how the tooltip information is displayed. Options: By single data point and By dimension value.

    Content

    Selects the data content to display in the tooltip. The available options depend on the selected Display mode.

    For By single data point mode, you can show percentages. For By dimension value mode, you can show totals and percentages.

    • Percentage: The percentage of a data point out of the total for the current dimension. For example, the percentage of profit amount out of total revenue for office supplies. When you choose to display percentage data, you can also set the number of decimal places to 0, 1, or 2 in Percentage Decimal Places.

    • Total: The sum of all measures for the current dimension. For example, the total sales amount for all regions in 2025.

    Background color

    Sets the background fill color of the tooltip.

    Text

    Sets the style of the text in the tooltip, including font color, size, weight, and italics.

  • Mobile settings

    image

    Parameter

    Description

    Floating bubble

    Click the image icon to enable the floating bubble display (①).

    Content

    Sets the data content to display in the floating bubble. You can choose to show percentage or total.

    • Percentage: The percentage of a data point out of the total for the current dimension. For example, the percentage of profit amount out of total revenue for office supplies. When you choose to display percentage data, you can also set the number of decimal places to 0, 1, or 2 in Percentage Decimal Places.

    • Total: The sum of all measures for the current dimension. For example, the total sales amount for all regions in 2025.

    Background color

    Sets the background fill color of the floating bubble.

    Text

    Sets the style of the text in the floating bubble, including font color, size, weight, and italics.

    Show axis dimension

    Click the image icon to enable the axis dimension display (②).

    Background color

    Sets the background fill color of the axis dimension label.

    Text

    Sets the style of the text for the axis dimension label, including font color, weight, and italics.

Series Settings

Configure series styles in the Series settings section.

image

Note

You can set the Alias and Series Value Display Format in Series Settings only when Color legend/Dimension is enabled in the Fields configuration panel.

Parameter

Description

Select field

Select a dimension or measure item based on your business scenario.

Alias

Sets a custom display name for the selected field.

This item can be configured only when Color Legend/Dimension is configured.

Line style

Sets the type and thickness of the line in the line chart.

Note

This feature is not supported for stacked and 100% stacked charts.

Show markers

Specifies whether to show markers. If selected, you can further specify the style of the markers.

Note

This feature is not supported for stacked and 100% stacked charts.

Show data labels

Select whether to show data labels and set the label position and text format.

Series value formatting

Configure the display format for series values. Options: Auto or Custom.

  • Auto: This is the default option. The series value inherits the data display format configuration of the corresponding measure field.

  • Custom: Click the image icon to open the Data Display Format Settings dialog box and configure the data format as needed. For information about the options in the dialog box, see Data display format > Custom.

This item can be configured only when Color Legend/Dimension is configured.

Show extremes

Specifies whether to show labels for extreme values in the chart. If selected, you can set the label's position, the content to display (maximum/minimum value), the label's background fill color, and the label's text style.

Note

This feature is not supported for stacked and 100% stacked charts.

Auxiliary Display

Configure the metric filter and view controls in the Auxiliary display section.

image

Parameter

Description

Enable in-chart metric filter

Specifies whether to enable the in-chart metric filter. If enabled, you can further set the default selected metric field.

View control

When the data on the chart axis is dense and cannot be fully displayed within the current container size, you can click the image icon to enable the chart view control. This allows report viewers to dynamically adjust the visible range of the chart by sliding, improving readability and interactivity.

You can use the following two control types to manage the visible area on the chart axis: navigator and scroll bar.

  • If you select navigator, a simplified full data trend chart (the navigator) is displayed at the bottom of the chart. Report viewers can drag the selection area to quickly browse all data or focus on a specific range. The navigator uses an absolute coordinate system, meaning the selected interval on the navigator maps directly to a fixed number of categories on the actual axis. This is suitable for comparative analysis or complex scenarios that require direct positioning.image By default, the navigator is shown only when the amount of data exceeds the display width of the chart container. If you want the navigator to be always visible in the chart, you can select Always show. When selected, the navigator will be displayed even if the chart data does not fill the screen.

  • If you select scroll bar, a horizontal scroll bar is displayed at the bottom of the chart. Report viewers can drag the slider horizontally to move the view window left or right. The scroll bar is ratio-based, meaning the slider's length and position depend on the ratio of the visible window to the total data range. This is suitable for general browsing scenarios.image You can also set the minimum category width for the scroll bar to limit the amount of data in the current chart window. This ensures that the chart content is clearly scaled within the visible area and avoids visual clutter from overlapping data labels or overly dense data points. The minimum category width is 32px by default, with a value range of 16px to 100px.

    After setting the minimum category width, the scroll bar will appear if the actual category width allocated for the chart is less than this value when fully displayed. When the scroll bar is enabled, chart elements and data labels are constrained within the rectangular area of the coordinate system. Any parts that exceed this area (such as markers and data labels) will be automatically truncated or repositioned to fit.

Note
  • If you do not configure a view control, the system automatically enables one when the chart is too small. The navigator is selected by default, and it will only be displayed when the amount of data exceeds the display width of the chart container.

  • The view control feature is not supported in facet mode.

Chart Analysis Settings

Parameter

Parameter

Description

Data interaction

Drilling

After configuring drilling for a chart, you can customize how drill levels are displayed. For more information, see Drilling.

Filter interaction

When you need to analyze data across different charts, use filter interaction to link them for a combined analysis. For more information, see Filter interaction.

Hyperlink

If your analysis spans multiple dashboards, use hyperlinks to connect them. Two types are supported: parameter hyperlinks and external links. For more information, see Hyperlink.

Advanced settings

Add data comparison

When you need to analyze data in a date dimension, you can add data comparisons. If the date field is set to day granularity, you can select options such as Same period last year, Same period last month, Same period last week, Previous day, or Custom end date to compare data.

image

Metric analysis

Reference line

A reference line helps you compare a measure's value against a set value. A set value can be a fixed value or a calculated value. Calculated values include average, maximum, minimum, and median. For more information, see Reference line.

Trendline

A trendline shows the overall trend of your data. Six trendline types are available: intelligent recommendation, linear, logarithmic, exponential, polynomial, and power. For more information, see Metric analysis.

Annotation

-

When chart data displays anomalies or requires special attention, you can use annotations such as color highlights, icons, comments, or data points. These annotations help you identify the issues and take appropriate action. For more information, see Annotation.

Next Steps

  • You can share a dashboard with specific users. For more information, see Share a dashboard.

  • To create a complex navigation menu for thematic analysis, integrate the dashboard into a business intelligence (BI) portal. For more information, see Business intelligence (BI) portal.