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

Pie Chart

This section describes parameters of a pie 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.
    Figure 1 Size and position of a pie chart
  • Global Style

    Font: text font.

  • Label Attribute
    • Label Attribute: to show or hide label attributes, click or .
    • Horizontal: horizontal stretch length of the leader line.
    • Radiating: radiating stretch length of the leader line.
    • Font Size: font size of the tag value.
    • Color: font color of the tag value.
    • Font Width: font width of the tag value.
    • Data Name: whether to display the data name.
    • Data Value: whether to display the data value
    • Percentage Display: whether to display percentage. To display the label value in percentage, click ; to display the label value in data, click .
    Figure 2 Label attributes of a pie chart
  • Pie Attribute
    • Inner Radius: to set the inner radius of the pie chart by entering a value or dragging .
    • Outer Radius: to set the outer radius of the pie chart by entering a value or dragging .
    • Horizontal Moving: to set the horizontal position of the pie chart center by entering a value or dragging .
    • Vertical Moving: to set the vertical position of the pie chart center by entering a value or dragging .
  • Legend
    • Legend: to show or hide the legend by clicking or .
    • Data Value: whether to display the data value in the legend
    • Percentage Display: whether to display percentage in the legend
    • Font Size: font size of the legend text.
    • Color: font color of the legend text.
    • Font Width: font width of the label text.
    • Direction: direction of the legend.
    • Position: position of the legend.
    • Left/Right Spacing: to set the spacing between legends by entering a value or clicking .
    • Top/Bottom Spacing: to set the spacing between the legend and the bottom edge of the container by entering a value or clicking .
    • Legend Spacing: Set the spacing between legends by entering a value or clicking to adjust the value.
    Figure 3 Legend of a pie chart
  • Message
    • Message: If you click , a message will pop up when you hover over a previewed or published component.
    • Data Name: If you click , data names will be displayed when you hover over a previewed or published component.
    • 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.
    • 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.

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.