Pie Chart

Configurable options for the pie chart.

A pie chart is commonly used to display the proportion of each part relative to the whole. The entire circle is divided into several sectors, and the size of each sector represents the percentage that each part occupies in the total.

Suitable scenarios include:

  1. Displaying the relationship between parts and the whole: Pie charts are best used to show the proportion of each part relative to the total, especially when you want to clearly display the proportion differences of each part in the total.
  2. Situations with a small total and few categories: Pie charts are typically suitable for cases with few categories (usually no more than 5-6). If there are too many categories, the chart becomes difficult to read, and the visual effect may suffer.
  3. Comparing proportions: If you want to highlight the differences in proportions between parts of the data, a pie chart can clearly help show which part is the largest, smallest, or how the parts differ from one another.

Basic Mode

In basic mode, drawing a pie chart requires:

  1. Number of Sectors (Polar) and Data: select columns using the dropdown menu. These are required.
  2. Color Scheme: select from the dropdown menu, with the default being the "Default" color scheme.
  3. Template: select via the "Change" button. If not selected, the default template will be used.
  4. Visibility: specify whether the tooltip and legend are displayed. By default, the tooltip triggered by the cursor is shown.

Advanced Mode

In advanced mode, more option values can be adjusted.

Axis

Includes the Number of Sectors (Polar): Select a column from the data using the dropdown menu. This is required.

Chart/Pie

The chart can be drawn as multiple concentric rings, and you can add or remove them using the and buttons at the top right corner of the panel.

For each pie/ring, the options include:

  • Data: select a column from the data using the dropdown menu. You can also configure the inner and outer radii, which are set as percentages.
  • Fill: configure the fill color and opacity of the pie chart. By default, it is configured using the color scheme.
  • Stroke: configure the stroke style of the pie chart. You can set the color, thickness, and dash type.
  • Label: by default, the sector labels are not displayed. You can choose to display values and leader lines.
  • LabelOfName: by default, the sector name labels are not displayed. When enabled, you can configure the color, font size, position, and offset.

Layout

Includes:

  • Margin: configure the top, bottom, left, and right margins of the drawing area (including the axis).

Description

Used to configure the display of supplementary information for the chart.

  • Title: configure the title of the chart, located at the top of the chart.
  • Description: configure the description of the chart, located below the title.
  • Footer: configure the footer text of the chart, located at the bottom of the chart.
  • Tooltip: configure whether to display the tooltip, its offset, and whether the cursor line is shown.
  • Legend: configure whether to display the legend, its position on the chart. By default, it is positioned at the bottom of the chart, below the X-axis and above the footer text.