All Products
Search
Document Center

DataV:Vertical Stacked Column Chart (V3.x Version)

Last Updated:Nov 06, 2025

A vertical stacked column chart is a type of column chart. It supports custom y-axis intervals, multi-series data configuration, and stacked data display. It can intelligently display multi-dimensional data differences in a small visualization application space. This topic describes the meaning of each configuration items of a vertically stacked column chart.

Parameter

Important

This topic describes the configuration items of vertically stacked bar charts in V3.x. For more information about how to view a vertical stacked bar chart in versions earlier than V3.0 or later, see Vertical stacking column chart (v3.0 or later) orThe Stacked Column Chart widget.

  • Search for Configurations: In the right-side panel of Canvas Editor, click the Settings tab, and click Search for Configurations in the upper-right corner. Enter the required configuration item in the search box, and click the search icon to quickly locate the configuration item. Fuzzy match is supported. For more information, see Search for Configurations.
  • Size: indicates the size of a widget, including its pixel width and height. You can click the Proportional resizing icon to proportionally adjust the width and height of a widget. After you click this icon again, you can adjust the width and height as needed.
  • Position: the position of a widget, which is indicated by pixel X and Y coordinates. X-coordinate indicates the pixel distance between the upper-left corner of the widget and the left border of the canvas. Y-coordinate indicates the pixel distance between the upper-left corner of the widget and the upper border of the canvas.
  • Rotation Angle: the angle of a rotation that uses the center point of a widget as the rotation point. The unit is degrees (°). You can use one of the following methods to control the rotation angle of a widget:
    • Directly enter the degrees in the Rotation Angle spin box or click the plus sign (+) or minus sign (-) to increase or decrease the value in the Rotation Angle spin box.
    • Drag the black dot in the Rotation control icon icon.
    • Click the Horizontal flip icon to horizontally flip a widget.
    • Click the Vertical flip icon to vertically flip a widget.
  • Opacity: the opacity of a widget. Valid values: 0 and 1. If this parameter is set to 0, the widget is hidden. If this parameter is set to 1, the widget is completely displayed. Default value: 1.
  • Chart 图表

    • Margin: the distance between the column chart area and the upper, lower, left, and right borders of the widget. Unit: px by default.

      Parameter

      Description

      Top

      The distance between the uppermost end of the column and the upper boundary of the component.

      Bottom

      The distance between the lowermost end of the column and the lower boundary of the component.

      Left

      The distance between the leftmost column and the component left boundary.

      Right

      The distance between the rightmost column and the right boundary of the component.

    • Maximum Load: You can specify a maximum number of input data records. The system loads the maximum number of input data records for layout, drawing, and computing. This ensures the visual application.

    • column chart Style: The style of each column in the column chart.

      Background Color: Set the background color of the column chart.

    • Value Label: the style of the value label of each column. You can click the 眼睛图标icon to display or hide the value label.

      Parameter

      Description

      Text

      The font style, text weight, font size, and color of the value label text.

      Save To

      The position of the value label text. You can select Top, Middle, or Bottom.

      Nullable data

      After you enable this feature, the value tag data is still displayed in the widget column. After you disable this feature, the value tag data is not displayed in the widget column.

    • Legend: the legend style of the column chart. You can click 眼睛图标the icon to display or hide the legend. 垂直堆叠柱状图图例面板

      Parameter

      Description

      Text

      The font style, text weight, font size, and color of the legend text.

      Layout

      The positional relationship between the legends.

      • Spacing

        • Left and Right Spacing: The distance between the left and right sides of adjacent legends. This configuration items is only valid when there are multiple series.

        • Distance: the distance between the legend and the upper and lower boundaries of the widget and column chart.

      • Position: the position of the legend relative to the start coordinate of the widget. Valid values: Top Left, Top Center, Top Right, Bottom Left, and Bottom Center Bottom Right.

  • Axis: You can select x-axis or y-axis.

    • x axis x轴面板

      • X Axis Visible: If you turn on this switch, the x-axis style of the widget is visible. If you turn off this switch, the x-axis style of the widget is invisible.

      • White Space: the distance between the left and right sides of the x-axis. Valid values: 0 to 1.

      • interval: the distance between columns on the x-axis. The larger the value, the thinner the column and the larger the interval. The value range is 0~0.95.

      • Axis Label: the style of the column chart x-axis label. You can click the 眼睛图标icon to display or hide the x-axis label.

        Parameter

        Description

        Text

        The font style, text weight, font size, and color of the x-axis label text.

        Axis Label Display

        • Angle: the angle of the labels on the x-axis. You can select Horizontal, Oblique, or Vertical.

        • Quantity: the number of labels on the x-axis.

        • Axis Unit: the unit of the x-axis label.

      • Axis: the style of the column chart x-axis. You can click 眼睛图标the icon to display or hide the x-axis.

        Color: the color of the x-axis line.

      • Gridlines: the style of the column chart x-axis gridlines. You can click the 眼睛图标icon to display or hide the x-axis gridlines.

        Color: the color of the x-axis grid lines.

    • Y axis 柱图Y轴样式面板

      • Y-Axis Visible: If you turn on the switch, the y-axis style in the widget is visible. If you turn off the switch, the y-axis style in the widget is invisible.

      • Range: the range of the maximum value on the y-axis.

        Maximum Value: the maximum value of the y-axis. You can specify a value that you want to specify or select.

        • Maximum Data Value: the maximum value in the data.

        • Automatic Rounding: The system automatically calculates the maximum value, minimum value, and the number of metric points in the data.

      • Axis Label: the style of the column chart y-axis label.

        Parameter

        Description

        Display Format

        The display format of the y-axis label value. You can select Default, 11 (integer), 11.1 (floating-point), 11.11 (floating-point), 11%, 11.1%, or 11.11%.

        Text

        The font style, text weight, font size, and color of the y-axis label text.

        Axis Label Display

        The y-axis labels show the quantity and units.

      • Axis: the style of the y-axis of the column chart. You can click 眼睛图标the icon to display or hide the y-axis.

        Color: the color of the y-axis.

      • Gridlines: the style of the column chart y-axis gridlines. You can click the 眼睛图标icon to display or hide the y-axis gridlines.

        Color: the color of the grid lines on the y-axis.

  • Series 柱图系列样式

    data series: Click the 加号图标or 垃圾桶图标icon on the right to add or delete a data series. Click the 横排列图标or icon 竖排列图标configure the arrangement style of multiple data series.

    Parameter

    Description

    Series Name

    The name of the data series, which can be customized. If this parameter is empty, the system displays s field values in the component data as series names. If this parameter is not empty, you must ensure the order in which data is returned.

    Color

    The colors column chart under this series.

  • Other scenarios

    • Ease Animation: the animation effect style of the bar chart. You can click the 眼睛图标icon to enable or disable the animation effect. 动画面板

      Parameter

      Description

      Animation Settings

      • Ease Effect: the easing effect of the animation. The system provides a variety of common easing effects for you to choose from.

      • Sequential animation of each series: If the switch is turned on, each series of column chart will play the animation in sequence; if the switch is turned off, all columns will play the animation together.

      Admission Animation

      The duration of the first animation rendered by the component. Unit: ms.

      Update Animation

      • Update Animation Duration: the duration of the animation when the widget data is updated. Unit: ms.

      • Start From Previous Position: If you turn on the switch, the animation starts from the previous position when the widget data is updated. If you turn off the switch, the animation starts from the initial position when the widget data is updated.

    • dialog box: The style of the dialog box that appears when you move the pointer over or click the column chart on the preview or publish page. Click 眼睛图标the icon to turn the dialog box on or off. 提示框面板

      Parameter

      Description

      Disappearing Delay Time

      When the trigger condition is not met, the dialog box will disappear. This configuration items sets the delay time before the dialog box disappears, in ms.

      Trigger Condition

      • Trigger Type: dialog box the type of the target to be triggered. This parameter is optional, including Data Item and Axis.

      • Trigger Action: dialog box the action to be triggered. This field is optional, including Hover and Click.

      Text Style

      The style of the text in the dialog box, including the font style, weight, font size, and color.

      Background Box Style

      The background box style of the dialog box.

      • Background Color: the background color of the dialog box.

      • Custom: the width and height of the dialog box. Unit: pixels. Click the 眼睛图标icon to turn custom dialog box on or off.

      • Pin: the inner margin of the dialog box. Unit: pixels.

      • Offset

        • Horizontal Offset: the horizontal offset of the dialog box relative to the mouse arrow. Unit: px.

        • Vertical Offset: the vertical offset of the dialog box relative to the mouse arrow. Unit: px.

      • Borders

        • Border: the border thickness of the dialog box. Unit: pixels.

        • Border Color: The border color of the dialog box.

The metadata of the filtering table.

数据面板v3.0以上

Sample code in the preceding figure:

[
  {
    "x": "Inner Mongolia",
    "y": "375",
    "s": "1"
  },
  {
    "x": "Inner Mongolia",
    "y": "180",
    "s": "2"
  },
  {
    "x": "Inner Mongolia",
    "y": "100",
    "s": "3"
  },
  {
    "x": "Zhejiang",
    "y": "200",
    "s": "1"
  },
  {
    "x": "Zhejiang",
    "y": "100",
    "s": "2"
  },
  {
    "x": "Zhejiang",
    "y": "200",
    "s": "3"
  },
  {
    "x": "Liaoning",
    "y": "25",
    "s": "1"
  },
  {
    "x": "Liaoning",
    "y": "125",
    "s": "2"
  },
  {
    "x": "Liaoning",
    "y": "100",
    "s": "3"
  },
  {
    "x": "Jilin",
    "y": "190",
    "s": "1"
  },
  {
    "x": "Jilin",
    "y": "110",
    "s": "2"
  },
  {
    "x": "Jilin",
    "y": "170",
    "s": "3"
  },
  {
    "x": "Heilongjiang",
    "y": "90",
    "s": "1"
  },
  {
    "x": "Heilongjiang",
    "y": "60",
    "s": "2"
  },
  {
    "x": "Heilongjiang",
    "y": "70",
    "s": "3"
  },
  {
    "x": "Anhui",
    "y": "240",
    "s": "1"
  },
  {
    "x": "Anhui",
    "y": "170",
    "s": "2"
  },
  {
    "x": "Anhui",
    "y": "280",
    "s": "3"
  },
  {
    "x": "Fujian",
    "y": "420",
    "s": "1"
  },
  {
    "x": "Fujian",
    "y": "190",
    "s": "2"
  },
  {
    "x": "Fujian",
    "y": "390",
    "s": "3"
  }
]

Table 1. Field description

Parameter

Description

x

The category of each column in the column chart, that is, the value of the x-axis.

y

The value of each bar in the column chart, that is, the value of the y-axis.

s

Optional. The data of the corresponding series.

Table 1. Parameters
ParameterDescription
Controlled ModeIf you turn on the switch, data is not requested when a widget is initialized. Data requests are triggered only based on callback IDs or the method configured in Blueprint Editor. If you turn off the switch, data requests are automatically triggered. By default, the switch is turned off.
Auto Data RequestAfter you select the Auto Data Request check box, you can enable dynamic polling, and manually specify the polling interval. If you do not select this check box, data is not automatically requested. You must manually refresh the page to request data or use Blueprint Editor or callback ID events to trigger data requests.
Data SourceIn the right-side panel of Canvas Editor, click the Data tab. Click Set next to Static Data. In the Configure Datasource panel, select a data source from the Data Source Type drop-down list. Enter code for data query in the code editor, click Preview Data Response to preview the response of the data source, and then view the response. For more information, see Configure asset data.
Data FilterIf you select the Data Filter check box, you can convert the data structure, filter data, and perform simple calculations. If you click the plus sign (+) next to Add Filter, you can configure the script for the data filter in the editor that appears. For more information, see Use the data filter.
Data Response ResultThe response to a data request. If the data source changes, you can click the Refresh icon icon next to Data Response Result to view the data response in real time.

Interaction

Select the Enable check box to enable interactions between widgets. When you click a column of a vertically stacked column chart, a data request is triggered, a callback value is thrown, and data of different columns is dynamically loaded. By default, the x, y, and s values are returned. For more information, see Configure callback IDs.

Configure interactions in Blueprint Editor

  1. In Canvas Editor, right-click a widget in the Layer panel and select Add to Blueprint Editor.

  2. Click the 蓝图图标icon in the upper-left corner.

  3. In Blueprint Editor, click the Stacked Column Chart widget in the Import Nodes pane. On the canvas, you can configure the parameters for a stacked column chart, as shown in the following figure. 垂直堆叠柱状图蓝图参数

    • Event

      Event

      Description

      When a vertical stacking bar chart interface request is completed

      The event is triggered with the processed JSON data after a data interface request is responded and processed by a filter. For specific data, see Data.

      When a data item is clicked

      The event that is raised when a column of a vertically stacked column chart is clicked, and the data item corresponding to the column is also raised.

      When you click the legend

      The event that is raised when the legend of a vertically stacked column chart is clicked, and the corresponding data item of the legend is also raised.

    • Policy Action

      Policy Action

      Description

      Request a vertical stacking bar chart interface

      This action is performed to request the server data again. The data sent by an upstream data processing node or layer node is used as a parameter. For example, if the API data source is set to http://api.test and the data passed to the Request Vertical Stack Column API is set to { id: '1'}, the final request interface is http://api.test?id=1.

      Import a vertical stacking column chart

      After data of a widget is processed in accordance with its drawing format, the widget is imported for redrawing. You do not need to request server data again. For specific data, see Data.

      Highlight

      Highlight the element corresponding to the data item. Example:

      {
        data: {
          x: 'Shanghai' // You can list multiple highlight conditions, similar to filter. 
        },
        options: {
          style: {
            fill: 'red'
          },
          selectMode: 'single',
          cancelHighlightFirst: true
        }
      }

      Unhighlight

      Cancels the highlighting of the element corresponding to the data item. Example:

      {
        data: {
          x: 'Shanghai'
        },
        options: {
          mode: 'single' // If the value is single, only one highlight is canceled when multiple data items are hit. If the value is multiple, all highlights are canceled when multiple data items are hit. 
        }
      }

      Clear components

      Clear component data. No parameters are required.

      Update component configurations

      Style configurations of widgets are dynamically updated. Before this action is executed, you must click the widget in Canvas Editor, click the Settings tab in the right-side panel, and click Copy Configurations to... to obtain widget configurations. After that, change the style field for the data processing node in Blueprint Editor.

      Display

      A widget is shown without the need to specify parameters.

      Hide

      A widget is hidden without the need to specify parameters.

      Switch to the hidden state

      A widget is hidden or shown.

          {
            //true indicates that a widget is shown, whereas false indicates that a widget is hidden. 
            "status": true,
            // Animation is displayed. 
            "animationIn": {
              // The animation type, which can be set to fade. If it is not specified, no animation is displayed. 
              "animationType": "fade",
              // The duration in which animation is displayed. It is in the unit of milliseconds. 
              "animationDuration": 1000,
              // The function that is used to display animation. You can set this parameter to linear|easeInOutQuad|easeInOutExpo. 
              "animationEasing": "linear"
            },
            // Animation is hidden. 
            "animationOut": {
              // The animation type, which can be set to fade. If it is not specified, no animation is displayed. 
              "animationType": "fade",
              // The duration in which animation is hidden. It is in the unit of milliseconds. 
              "animationDuration": 1000,
              // The function that is used to hide animation. You can set this parameter to linear|easeInOutQuad|easeInOutExpo. 
              "animationEasing": "linear"
            }
          }

      Move

      A widget is moved to a specified location.

          {
            // The positioning type. to indicates absolute positioning, whereas by indicates relative positioning. The default value is to. 
              "positionType": "to",
            // The location, which is indicated by the x and y coordinates. 
            "attr": {
              "x": 0,
              "y": 0
            },
            // The animation type. 
            "animation": {
              "enable": false,
              // The duration in which animation is displayed. 
              "animationDuration": 1000,
              // The animation curve, which can be set to linear|easeInOutQuad|easeInOutExpo. 
              "animationEasing": "linear"
            }
          }