Skip to content

Circle chart

The circle chart, displayed as a pie or donut chart, shows how much each part of something makes up the whole. Each arc length represents a proportion of each category, while the full circle represents the total sum of all the data, equal to 100%.

Usage

In order to use a donut or pie chart, there must be a whole amount that is divided into a number of distinct parts. The primary goal is to compare each part contribution to the whole, as opposed to comparing parts to each other.

Basic donut chart

A donut chart uses arc segments to display individual dimensions. When compared to pie charts, they are visually lighter and easier to read.

Donut chart basic

Donut chart with center label

If needed, the space in the middle can be used to display data.

Donut chart center label

Pie chart

Pie charts are visually heavy, be mindful about the size and colors selected to display the data.

Pie chart basic

Best practices

  • Use pie charts sparingly.
  • Don't plot more than five categories on the same circle chart. If needed, consider merging small slices into a single other slice.
  • Don't use multiple circle charts to make comparisons between them.
  • Consider the order of the categories, audiences will likely read the chart clockwise.
  • Consider placing the chart values as part of the legend, especially when dealing with long numbers.
  • The legend can be placed below or right to the circle chart. Use good judgement to select the best layout according to current need.

Design

Circle chart design

  1. Circle chart, 2. Values, 3. Legend

Code

Usage

Required Packages
import { SiChartCircleComponent } from '@siemens/charts-ng/circle';

@Component({
  imports: [SiChartCircleComponent, ...]
})

Pie chart

Donut chart

SiChartCircleComponent API Documentation

Source
import { SiChartCircleComponent } from '@siemens/charts-ng/circle';

Input Properties

NameTypeDefaultDescription
additionalOptionsinherited
EChartOption | undefined

Used to override specific properties set in options.

Inherited from SiChartBaseComponent

autoZoomSeriesIndexinherited
number -1

No auto dataZoom update) by default. Use together with visibleEntries.

Inherited from SiChartBaseComponent

axisPointerinherited
string | boolean | undefined false

Used to display axisPointer line either by click or mouse-move.

Inherited from SiChartBaseComponent

customLegendActioninherited
boolean | undefined

Enable custom legend click actions exposed by the selectionChanged event.

Inherited from SiChartBaseComponent

dataZoomFilterModeinherited
FilterMode 'none'

The data zoom filter mode. (see https://echarts.apache.org/en/option.html#dataZoom-inside.filterMode)

The value 'filter' will cause the lines to be disconnected to the outside of the chart.

Inherited from SiChartBaseComponent

dataZoomMaxValueSpaninherited
number | undefined

The upper limit of the data zoom slider (see https://echarts.apache.org/en/option.html#dataZoom-slider.maxValueSpan).

Inherited from SiChartBaseComponent

dataZoomMinValueSpaninherited
number | undefined

The lower limit of the data zoom slider (see https://echarts.apache.org/en/option.html#dataZoom-slider.minValueSpan).

Inherited from SiChartBaseComponent

dataZoomRangeinherited
DataZoomRange | undefined

Apply a specific zoom range (see https://echarts.apache.org/en/option.html#dataZoom-inside).

Inherited from SiChartBaseComponent

eChartContainerHeightinherited
string | null | undefined

The height of the ECharts container as decimal.

Inherited from SiChartBaseComponent

externalXAxisFormatterinherited
((value: any, visibleRange: number) => string) | undefined

External XAxis Formatter from consumer

Inherited from SiChartBaseComponent

externalZoomSliderinherited
boolean false

Flag to use external zoom slider

Inherited from SiChartBaseComponent

maxEntriesinherited
number 1000

Maximum number of series data points shown in the chart.

Inherited from SiChartBaseComponent

optionsinherited
EChartOption | undefined

See [ECharts 5.x Documentation]https://echarts.apache.org/en/option.html for all available options.

Inherited from SiChartBaseComponent

paletteinherited
string | undefined undefined

The name of the color palette (if any) of the loaded theme.

Inherited from SiChartBaseComponent

rendererinherited
"canvas" | "svg" 'canvas'

the renderer to use: canvas or svg

Inherited from SiChartBaseComponent

selectedIteminherited
SelectedLegendItem { legendItemName: '' }

Specify selected legend item.

Inherited from SiChartBaseComponent

series
CircleChartSeries[] | undefined

The series for the chart.

showCustomLegendinherited
boolean false

Enable to show a custom legend. The custom legend offers additional features such as, scroll bar to avoid legend and chart overlapping, Left and right alignment of legends based on y-axis, etc and many more.

Inherited from SiChartBaseComponent

showLegendinherited
boolean true

Show Echarts legend

Inherited from SiChartBaseComponent

showTimeRangeBarinheriteddeprecated
boolean false

If true, add consumer-provided time range bar. Use together with zoomSlider.

Deprecated: The input will be removed in future versions as the time range bar slot is deprecated.

Inherited from SiChartBaseComponent

subTitleinherited
string | undefined

The subtitle of the chart.

Inherited from SiChartBaseComponent

themeinherited
any

The desired theme to load.

Inherited from SiChartBaseComponent

themeCustomizationinherited
any

Used to override specific options of loaded theme.

Inherited from SiChartBaseComponent

titleinherited
string | undefined

The title of the chart.

Inherited from SiChartBaseComponent

visibleEntriesinherited
number -1

No auto dataZoom update) by default. Use together with autoZoomSeriesIndex.

Inherited from SiChartBaseComponent

visibleRangeinherited
number -1

No auto dataZoom update) by default. Use together with autoZoomSeriesIndex.

Inherited from SiChartBaseComponent

zoomInsideinherited
boolean false

Enables zooming inside the chart with the mouse wheel/touch.

Whether zooming inside the chart is possible with mouse.

Inherited from SiChartBaseComponent

zoomSliderinherited
boolean false

Enables the zoom slider below the chart.

Inherited from SiChartBaseComponent

zoomSliderBrushinherited
boolean true

enable brush mode for zoom slider

Inherited from SiChartBaseComponent

zoomSliderRealtimeinherited
boolean true

realtime update mode for zoom slider

Inherited from SiChartBaseComponent

zoomSliderShadowinherited
boolean true

Shows data shadow in dataZoom slider, use together with zoomSlider.

Inherited from SiChartBaseComponent

Output Properties

NameTypeDescription
chartGridResizedinherited
GridRectCoordinate

Event emitted when chart grid is resized.

Inherited from SiChartBaseComponent

chartSeriesClickinherited
LegendItem

Event emitted when a chart series is clicked.

Inherited from SiChartBaseComponent

customLegendMultiLineInfoEventinherited
CustomLegendMultiLineInfo[]

Event emitted when custom legend multi-line info changes.

Inherited from SiChartBaseComponent

dataZoominherited
DataZoomEvent

Event emitted when data zoom changes.

Inherited from SiChartBaseComponent

pointerinherited
AxisPointerEvent

Event emitted when axis pointer moves.

Inherited from SiChartBaseComponent

selectionChangedinherited
any

Event emitted when selection changes e.g. clicking on a legend item.

Inherited from SiChartBaseComponent

showLegendChangeinherited
boolean

Show Echarts legend

Inherited from SiChartBaseComponent

timeRangeChangeinherited
number

Emitted when data zoom changes, indicating the time range in milliseconds, 0 for full range

Inherited from SiChartBaseComponent

visibleEntriesChangeinherited
number

No auto dataZoom update) by default. Use together with autoZoomSeriesIndex.

Inherited from SiChartBaseComponent

visibleRangeChangeinherited
number

No auto dataZoom update) by default. Use together with autoZoomSeriesIndex.

Inherited from SiChartBaseComponent

Attributes and Methods

NameTypeDescription
startProgressIndication()inherited
() => void

Show loading indicator.

Inherited from SiChartBaseComponent

stopProgressIndication()inherited
() => void

Hide loading indicator.

Inherited from SiChartBaseComponent

Types Documentation

Properties

FilterMode

'none' | 'filter' | 'weakFilter' | 'empty'
type alias
Properties
Properties

AxisType

'value' | 'category' | 'time' | 'log'
type alias

Except where otherwise noted, content on this site is licensed under MIT License.