Updated on 2022-02-22 GMT+08:00

Stacked Bar Chart

This section describes parameters of a stacked bar chart.

Figure 1 Stacked bar chart

Pattern

  • Size/Position
    • Size: width and height of the component. Unit: pixel.
    • Position: position where the component is located in the canvas. Unit: pixel.
  • Global Style
    • Font: text font.
    • Series Spacing: spacing between chart series.
  • Margin
    • Top: spacing between the top sides of the chart and the component layer. You can enter a value or click to adjust the spacing.
    • Bottom: spacing between the bottom sides of the chart and the component. You can enter a value or click to adjust the spacing.
    • Left: spacing between the left sides of the chart and the component. You can enter a value or click to adjust the spacing.
    • Right: spacing between the right sides of the chart and the component. You can enter a value or click to adjust the spacing.
  • Value Tag
    • Value Tag: to show or hide the value tag by clicking or .
    • Font Size: font size of the value tag.
    • Font Width: font width of the value tag.
    • Color: font color of the value tag.
    • Position: position of the value tag. The options are Top, Align right, Inside, Align left, Bottom, Inside left, Inside right, Inside top, and Inside bottom.
  • X Axis
    • X Axis: to show or hide the X axis by clicking or .
    • Text: text style of the X axis, including Font Size, Color, Font Width, and Angle.
    • Coordinate Axis: color of the X axis.
    • Scale: to show or hide the scales by clicking or .
    • Grid Line: grid line color of the X axis.
    Figure 2 X axis of a stacked bar chart
  • Y Axis
    • Y Axis: to show or hide the Y axis by clicking or .
    • Text: text style of the Y axis, including Font Size, Color, Font Width, Angle, and Axis Label.
    • Coordinate Axis: color of the Y axis.
    • Grid Line: grid line color of the Y axis.
    • Axis Unit: to set the unit and font color of the Y axis.
    Figure 3 Y axis of a stacked bar chart
  • Legend
    • Legend: to show or hide the legend by clicking or .
    • Text: text style of the legend, including Font Size, Color, and Font Width.
    • Spacing: distance between legends, including Left/Right Spacing and Top/Bottom Spacing.
    Figure 4 Legends of a stacked bar chart
  • Message
    • Message: If you click , a message will pop up when you hover over a previewed or published component.
    • Triggering Mode: to set the triggering mode of messages. The options are Coordinate Axis and Data.
    • Color: font color of the message.
    • Font Size: font size of the message.
    • Font Width: font width of the message.
  • Animation
    • Click or next to Animation to hide or show animation, respectively.
    • Duration: duration of the first rendering of the component, in ms.
    • Animation Effect: The system provides multiple common animation slow-moving effects.
    • Animate in Order: If this option is selected, the series are animated in sequence. If this option is deselected, all series are animated at the same time.
    • Duration After Change: animation duration when the component data is updated, in ms.
    • Start from Previous Position: If this option is selected, the animation is played from the position of the previous data when the component data is updated. If this option is deselected, the animation is played from the initial position when the component data is updated.
    Figure 5 Animation (line chart)

Data

For details about how to configure component data, see Configuring Component Data.

Interaction

For details about whether the component supports the interaction function and how to use the interaction function, see Configuring Component Interaction.