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

Configure Data
-
In the Charts section of the component library, find Stacked Area Chart and drag it to the canvas.

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

You can also do the following with the data:
Set field formats in bulk (①). For details, see Configure field styles in batches.
Set a field filter (②). For details, see Filter data.
Set automatic data refresh (③). For details, see Refresh data on a schedule.
Switch datasets (④). For details, see Switch datasets.
Edit the dataset (⑤). For details, see Edit a dataset.
Transform data (⑥). For details, see Create a calculated field and Create a grouped dimension.
Duplicate a field (⑦). For details, see Duplicate a field as a dimension.
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 (⑥).

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 Overlapto override this behavior.

Legend
In the Legend area, you can set the position (top, bottom, left, or right) and text style.
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.
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.
-
Auto: By default, the series values inherit the format from the corresponding measure field's data display format configuration. -
Custom: Click the
icon to open the Data display format settingsdialog box and configure a custom format. For details on each setting, see Data display format > Custom.
-
-
Sync styles to: Syncs the current series settings to other metrics.
