Doughnut chart

更新时间:
复制 MD 格式

A doughnut chart shows data as proportions of a whole, providing an at-a-glance view of how each part contributes to the total.

Prerequisites

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

Example

环图

Configure data

  1. In the Charts section of the component library, find the doughnut chart and drag it to the canvas.image

  2. Click Select a dataset and add data. The icon is updated as shown in the following figure.image

The following data operations are also available:

image.png

Chart style

Position and size

Configure the following position and size options:

  • Adjust the component's alignment. Options include Align Left, Center, and Align Right.

  • Set the component's position (X and Y coordinates) relative to the top-left corner of the canvas.

  • Set the rotation angle of the component.

  • Set the component's width (W) and height (H).

  • Lock the component to prevent changes to its size and position.

image

Slices

Configure the following slice options:

  • Set the color for each slice.

  • Adjust the inner and outer radius of the slices.

Untitled

Legend

Configure the following legend options:

  • Set the position of the legend. Options include Top, Bottom, Left, and Right.

  • Set the spacing between legend items.

  • Set the shape of the legend icons. Options include Circle, Rectangle, Rounded Rectangle, and Triangle.

  • Configure the text style for the legend, including color, font size, and font style (Bold or Italic).

Untitled

Data labels

Configure the following data label options:

  • Select the information to display on each slice. You can show one or more of the following: dimension values, metric, and percentage.

  • Set the number of decimal places for percentages. You can select 0, 1, or 2.

  • Set the layout of the data labels. Options are Horizontal and Vertical.

  • Align the data labels. When the layout is set to Vertical, you can align the text to the Center, Left, or Right.

  • Configure the text style for the data labels, including color, font size, and font style (Bold or Italic).

Untitled