Visualization Element: Donut Chart
Symbol:

Category: Measurement Controls
A donut chart (ring chart) is a display element. It shows how a whole is composed of percentual parts. It is a special type of pie chart in which the center remains empty. The empty area in the middle can be used to display additional information and to display text.
Element properties
Are all element properties available?
All properties are available only after you select the Advanced option or the All categories filter in Properties.
Element name |
Name assignmentAssign individual names for elements so that they are found faster in the element list. |
Type of element | Donut Chart |
Position
The position defines the location and size of the element in the visualization window. This is based on the Cartesian coordinate system. The origin is located in the upper left corner of the window. The positive horizontal X-axis runs to the right. The positive vertical Y-axis runs downwards.
X | The X-coordinate (in pixels) of the upper left corner of the element Example: |
Y | The Y-coordinate (in pixels) of the upper left corner of the element Example: |
Width | Specified in pixels Example: |
Height | Specified in pixels Example: |
Tip
You can change the values by dragging the box
symbols to other positions in the editor.
Data array
Data array | Data (array variable A one-dimensional array with a numeric base type is expected. All arrays used in this element must have the same dimension. Example: When executed, the array data is displayed as a donut chart. |
PROGRAM PLC_PRG VAR arrInt : ARRAY[0..3] OF INT := [45, 12, 58, 32]; END_VAR
Colors and labels
Text list | Text list for the chart; used for the labels in the legend.
Example: |
Segments | Static configuration of the segments of the donut chart Clicking the |
[<Index>] | Configuration for the respective indexed segment |
Color | Color of the segment
|
Text ID | References a text from the text list for the labels in the legend
|
Dynamic configuration
Important
All arrays used should have the same dimensions.
Array for labels | Variable of type Example: To display the texts that change at runtime, a variable can be passed which programmatically contains the current texts for the respective segment. Double-clicking in the value field will open the line editor. Clicking the |
Array for colors | Variable of type Example: To display the colors that change at runtime, a variable can be passed which programmatically contains the current colors for the respective segment. Double-clicking in the value field will open the line editor. Clicking the |
Array for visibility of segments | Variable of type Example: To display the visibility that changes at runtime, a variable can be passed which programmatically contains the current flag for the respective segment. Double-clicking in the value field will open the line editor. Clicking the |
Property
Donut thickness | Fixed value for the thickness of the donut chart (in pixels) Example: |
Show tooltip |
NoteThis is possible only when the overlay functionality is used. For more information, see the following: Settings |
Display values in percent |
|
Legend
Show legend |
|
Legend position | The legend can be placed above or below the donut.
|
Value Format | Sets the format for the legend. The format specification must be compatible with the base data type of the data array. Example: |
Font | Font for text output on the legend
|
Font color | Color for text output of the legend
|
Center
The properties contain fixed values for the coordinates of the point of rotation. The rotation point is displayed in the editor as the
symbol and is used as the center for rotation and scaling.
Tip
You can also change the values by dragging the
symbol to another position in the editor.
X | Editable X-coordinate of the point of rotation Double-clicking in the value field will open the line editor. |
Y | Editable Y-coordinate of the point of rotation Double-clicking in the value field will open the line editor. |
Absolute movement
The properties contain IEC variables for controlling the position of the element dynamically. The reference point is the upper left corner of the element. At runtime, the entire element is moved.
Movement | ||
X |
Increasing this value at runtime moves the element to the right. | |
Y |
Increasing this value at runtime moves the element downwards. | |
Rotation | Variable (numeric data type) for the angle of rotation (in degrees) Example: The midpoint of the element rotates at the Center point. This rotation point is shown as the At runtime, the alignment of the element remains the same with respect to the coordinate system of the visualization. Increasing the value rotates the element to the right. | ![]() |
Scaling | Variable (integer data type) to trigger a centric stretching Example: The reference point is the Center property. The value | |
Interior rotation | Variable (numeric data type) for the angle of rotation (in degrees) Example: At runtime, the element rotates about the point of rotation specified in Center according to the value of the variable. In addition, the alignment of the element rotates according to the coordinate system of the visualization. Increasing the value in the code rotates clockwise. The rotation point is shown as the NoteIf a static angle of rotation is specified in the property, then the static angle of rotation is added to the variable angle of rotation (offset) when the visualization is executed. | ![]() |
Tip
You can combine the variables to a Unit conversion.
Tip
The X, Y, Rotation, and Interior rotation properties are supported by the "Client Animation" functionality.
State variables
The variables control the element behavior dynamically.
Invisible | Variable (
|
Tip
The Invisible property is supported by the "Client Animation" functionality.
Animation
Tip
These properties are available only when you have selected the Support client animations and overlay of native elements option in the Visualization Manager.
Animation duration | Variable for the duration (in milliseconds) in which the element runs an animation
. Animatable properties
The animated movement is executed when at least one value of an animatable property has changed. The movement then executed is not jerky, but is smooth within the specified animation duration. The visualization element travels to the specified position while rotating dynamically. The transitions are smooth. |
Move to foreground | Variable (
Example: |
Permissions
Note
Available only when a user management is set up for visualization.
Access Rights button | Opens the Access Rights dialog. There you can edit the access privileges for the element. . Status messages:
|






