Line Chart

更新时间: 2026-06-23 12:54:30

Line charts display data trends over time, such as tracking product sales to forecast future performance. You can add data to a line chart and configure its styles.

Example

效果图

Configure Data

  1. In the Charts section of the component library, find the Line Chart and drag it to the canvas.image.png

  2. Click Select a dataset and add data as shown in the following figure.image.png

You can also:

image.png

Configure Styles

Position and Size

In the configuration pane, you can adjust the following settings for the component:

  • Adjust the component's alignment (①). Options include left, center, and right.

  • Adjust the component's position (②). Set its X and Y coordinates, relative to the top-left corner of the canvas.

  • Adjust the component's rotation (③). Set the rotation angle.

  • Adjust the component's size (④). Set its width (W) and height (H).

  • Lock the component (⑤). When locked, you cannot adjust its size or position.

  • Set the component's opacity (⑥).

image.png

Drawing Area

In the plotting area, configure the following line chart styles:

  • Color Scheme: Sets the line chart colors.

  • Line type: Sets the line type to Curve or Straight.

  • Null Value Handling: Specifies how null values are handled: skip them, set them to 0 (keeping the line continuous), or break the line.

  • Line weight: Sets the line type and weight.

  • Show Markers: Sets the marker style to circle, hollow circle, diamond, or hollow diamond (①).

  • Show data labels: Toggles data label display. You can select how labels are shown (for example, whether to display all of them) and set their text style (②).

    When all data labels are shown, the system arranges them automatically to prevent overlap. Labels that extend beyond the axis area may be hidden. Select Allow data labels to overlap to force all labels to display.

image

Legend

In the Legend area, set the legend position (top, bottom, left, or right) and text style.image.png

Axis

The X-axis section supports the following settings:

  • Show axis title and unit: Set the axis title, unit, and text style (①).

  • Axis line: Sets the type, thickness, and color of the axis line (②).

  • Axis Labels and Tick Marks: Sets the text style for the axis labels and the thickness and color for the tick marks (③ and ④).

  • Gridline: Sets the type, thickness, and color of the gridlines (⑤).

X轴

Tooltip

In the Tooltip section, configure the tooltip display mode.

image.png

Parameter

Description

Display mode

Sets how tooltip information is displayed. Options: By Data Point and By Dimension Value.

Content

When Display mode is set to By Data Point, Percentage is supported.

When Display mode is set to By Dimension Value, Total and Percentage are supported.

Background color

Sets the background color of the tooltip.

Text

Sets the style for the tooltip text.

The following figure shows an example.

image.png

Series Settings

In the Series Settings area, configure series-level display options for the line chart.

Note

You can set the Alias and Series value display format in the Series settings only if Color legend/dimension is enabled in the Field configuration panel.

  • Select Series: Select a measure from the Metric/Measure area.

  • Alias: Sets a display name that fits your business scenario.

  • Line Weight: Sets the style and weight of the data lines in the chart.

  • Display Markers: Sets the marker style for the selected measure. Options: circle, hollow circle, diamond, and hollow diamond.

  • Show data labels: Sets the number display format and text style for data labels. The number display format supports two modes: Automatic and Custom.

  • Show Extreme Values: Toggles extreme value display in the chart. You can configure the position, content, background fill color, and text style of the extreme value labels.

  • Sync style to: Applies the current series settings to other metrics.

image

上一篇: Tabular report 下一篇: Area Chart
阿里云首页 智能商业分析 Quick BI 相关技术圈