com.ergotech.vib.graphics.javascript.charting.DoughnutChart
The DoughnutChart graphic is a chart graphic used to display values as circular sections with open space in the center.
DoughnutChart is similar to PieChart, but the sections use an inner radius to create the doughnut shape.
Each doughnut section represents one configured series item, and the size of each section is based on the incoming data value.
DoughnutChart accepts input through valueInput.
The input can come from a data source, Constant, BroadcastServer, or another logic component.
DoughnutChart works well with one-dimensional array-style data.
A common test data source is:
When an ArrayDataSource is connected to DoughnutChart, the array values are used as the doughnut section values.
For predictable display, the number of array values should match the configured doughnut sections. For example, if the DoughnutChart has two configured sections, the connected array should provide two values.
DoughnutChart is used as a display graphic.
DoughnutChart does not provide a default user-input output workflow.
DoughnutChart displays values as circular sections with an open center.
DoughnutChart-specific settings include:
In the Logic Editor, DoughnutChart includes this default port:
The valueInput port receives one-dimensional array-style chart data.
For standard DoughnutChart setup, leave Use1DInput enabled and connect a supported one-dimensional data source such as ArrayDataSource to valueInput.
DoughnutChart uses the Series property to define the doughnut sections displayed on the chart.
Each series item represents one doughnut section.
The Series editor includes a live preview and grouped settings for appearance, radius, label display, and animation.
When an ArrayDataSource provides multiple values, matching doughnut sections should be configured so each value can display as a separate section.
For example, if an ArrayDataSource provides two values, the DoughnutChart should have two configured sections.
To add another doughnut section:
DoughnutChart Series editor with preview, appearance, radius, label, and animation settings.
The Series editor includes these sections:
The Appearance section includes:
The Radius section includes:
The Label section includes:
The Animation section includes:
Each visible doughnut section needs a matching configured section in the Series property.
For example:
One array value = one doughnut section Two array values = two doughnut sections Three array values = three doughnut sections
If the chart has more data values than configured sections, extra values can fail to appear as separate doughnut sections.
ArrayDataSource can be used for DoughnutChart testing.
When ArrayDataSource is connected to DoughnutChart, the array values are used as the values for the configured doughnut sections.
For example:
Array value 1 -> first doughnut section Array value 2 -> second doughnut section Array value 3 -> third doughnut section
If the DoughnutChart has two configured sections, use an array with two values for predictable display.
The UseTooltip property controls whether DoughnutChart displays tooltip information when the user hovers over the chart.
Tooltips are useful for showing the exact value of a doughnut section.
Each doughnut section includes Inner Radius (%) and Outer Radius (%) settings.
The Inner Radius (%) setting creates the open center of the doughnut chart.
The Outer Radius (%) setting controls the outside edge of the doughnut section.
For a standard doughnut chart, the inner radius should be greater than 0 and the outer radius should be greater than the inner radius.
Use DoughnutChart when values should be shown as sections of a whole with open space in the center.
Use ArrayDataSource for simple DoughnutChart testing.
Use numeric or array-style data sources with DoughnutChart. String data sources are not appropriate for numeric doughnut chart input.
DoughnutChart is intended for one-dimensional section values, not full x/y table-style chart data.
DoughnutChart is separate from PieChart, LineChart, BarChart, and RadarChart. Use DoughnutChart when values should be compared as circular sections with a center opening.