Area charts display data trends over time and highlight each series' contribution to the total. Learn how to add data and configure styles for an area chart.
Example

Configure Data
-
In the Components area, under Chart, find 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 (⑥).

Plotting Area
Configure the area chart style in the Plotting Area section:
-
Color Palette: Sets the chart colors.
-
Line Type: Sets the line to Curve or Straight Line.
-
Handle Null Values: Choose to skip null values, set them to 0 (keeping the line continuous), or break the line.
-
Line thickness: Sets the line style and thickness.
-
Show Markers: Sets the marker style. Options include circle, hollow circle, diamond, and hollow diamond (①).
-
Area Style: Enables a gradient effect (②) and sets its opacity.
-
Display data labels: Controls whether data labels are shown and lets you select the display method (for example, display all) and text style (③).
If labels are too dense, some may be hidden when they extend beyond the chart boundaries. To show all labels regardless of overlap, select Allow Data Labels to Overlap.

Legend
In the Legend area, set the legend position (top, bottom, left, or right) and text style.
Axis
For example, in the X-axis section, you can perform the following operations.
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 (⑤).

Tooltip
In the Tooltip section, configure how tooltips appear.

|
Parameter |
Description |
|
Display mode |
Determines how tooltip information appears. Options are By Single Data Point and By Dimension Value. |
|
Content |
If Display Mode is By Single Data Point, you can show the percentage. If the mode is By Dimension Value, you can show the total and percentage. |
|
Background color |
Sets the tooltip background color. |
|
Text |
Sets the tooltip text style. |
The following image shows a tooltip example.

Series Settings
Configure chart series in the Series Settings area.
You can set the alias and series value display format in 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: Set a field name that fits the actual business scenario.
Line Weight: Sets the style and weight of the data lines in the chart.
Display Markers: Specifies the style of markers for the target measure. The supported styles are circle, hollow circle, diamond, and hollow diamond.
Show data labels: Configure the number display format and text style for data labels. The number display format has two modes: Automatic and Custom.
Auto: This is the default option. Series values inherit the Data display format configuration of the corresponding measure field.
Custom: Click the
icon to open the Data display format settings dialog box and configure the data format as needed. For more information about the configuration items in the dialog box, see Data display format > Custom.
Show Extreme Values: Specifies whether to display extreme values in the chart. You can configure the position, content, background fill color, and text style of the extreme value labels.
Sync style to: Syncs the current series settings to other metrics.
