Stacked Column Chart

更新时间:
复制 MD 格式

A stacked column chart shows trends over time and compares values across categories.

Prerequisites

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

Example

堆积柱图

Add Data

  1. In the component library pane, under charts, find and drag stacked column chart to the canvas.image.png

  2. Click Select a dataset and add data to the chart as shown in the following figure. The updated chart is displayed.image.png

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

Chart Styles

Position and Size

The Position and size section provides the following settings:

  • Adjust component alignment (①): Aligns the component to the left, center, or right.

  • Position (②): Sets the X and Y coordinates of the component, with the top-left corner as the origin.

  • Rotation (③): Sets the rotation angle of the component.

  • Size (④): Sets the W (width) and H (height) values to adjust the component's size.

  • Lock Component (⑤): Locks the component to prevent modifications to its size and position.

image.png

Plot Area

The plot area section provides the following settings:

  • Color scheme: Select the color of the bars.

  • Bar Orientation: Sets the bar orientation to horizontal or vertical.

  • Bar Style: Set the bar width and corner radius.

  • Display data labels: Controls whether to show data labels, the content to display, whether to show all labels, and the text style.

    When Show All is enabled, the system intelligently arranges data labels to prevent overlap. However, if the chart has a large number of labels, some that extend beyond the plot area might be hidden. To display all labels regardless of overlap, select Allow Data Labels to Overlap.

image

Legend

The legend section provides the following settings:

  • Show legend: Toggles the legend visibility.

  • Position: Sets the legend position.

  • Text: Configures legend text properties such as size and color.

图例

X-axis

The x-axis section provides the following settings:

  • Display X-axis: Toggles x-axis visibility.

  • Axis title: Configures the axis title and unit, including text size and color.

  • Axis line: Configures the axis line visibility and color.

  • Axis labels and ticks: Configures axis label visibility, text color, and tick style.

  • Gridline: Configures gridline visibility, width, and color.

X轴

Y-axis

The y-axis section provides the following settings:

  • Show Y-axis: Sets the visibility and properties of the y-axis, such as its position, value range, maximum value, and minimum value.

  • Axis title: Configures the axis title and unit, including text size and color.

  • Axis line: Configures the axis line visibility and color.

  • Axis labels and ticks: Configures axis label visibility, text color, and tick style.

  • Gridline: Configures gridline visibility, width, and color.

Y轴

Series Settings

The series settings section provides the following settings:

Note

To configure alias and series value display format in the series settings pane, you must first add a field to the Color Legend/Dimension field in the Fields configuration pane.

  • Select a series: Select a dimension or measure for your business scenario.

  • Alias: Sets a custom field name for your business scenario.

  • Display data labels: Set the number display format and text style. The number display format supports Automatic and Custom modes.

  • Sync style to: Syncs the current conditional formatting to other measures.

image