Stacked Area Chart

更新时间:
复制 MD 格式

A stacked area chart shows data trends over time and the proportion each category contributes to the total.

Example

image.png

Configure Data

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

  2. Click Select a dataset, and follow the instructions in the figure below to add data.image.png

You can also do the following with the data:字段设置

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

Plot Area

In the plot area, configure the style of the stacked area chart:

  • Color Scheme: Sets the colors for the stacked area chart.

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

  • Null Value Handling: For null data values, you can skip them, set them to 0 (the line remains continuous), or break the line.

  • Line thickness: Set the line style and thickness.

  • Show Markers: Sets the marker style. Supported styles are circle, hollow circle, diamond, and hollow diamond (①).

  • Area style: Enable the gradient effect (②) and set its transparency.

  • Show data labels: Toggle data labels and configure their display mode (such as showing all labels) and text style (③).

    When you show all data labels, the system automatically adjusts their positions to prevent overlapping. If there are too many labels, some may not be displayed if they extend beyond the axis area. You can also select Allow Data Labels to Overlap to override this behavior.

image

Legend

In the Legend area, you can set the position (top, bottom, left, or right) and text style.Legend

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 (⑤).

坐标轴

Series Settings

Configure individual series in the Series Settings area.

Note

You can configure the alias and series value display format in Series Settings only when Color Legend/Dimension is enabled in the field configuration panel.

  • Select Series: Select a metric from the Metric section.

  • Line weight: Sets the line style and weight for the selected metric.

  • Show Markers: Sets the style of markers for the target metric. The supported styles are circle, hollow circle, diamond, and hollow diamond.

  • Show Data Labels: Set the numerical display format and text style for the data labels. The numerical display format supports two modes: Automatic and Custom.

  • Sync styles to: Syncs the current series settings to other metrics.

image