BarGraphData
A BarChart can be configured in different ways:
- Via Engineering
- Array of numbers
- Array of arrays of numbers
- Via an array from the PLC
- Array of Numbers
aValues: ARRAY [1..10] OF INT; - Array of arrays of numbers
aValues: ARRAY [1..2, 1..10] OF INT;
Engineering
1. Add a bar chart to the interface.
2. Define which type of object you want to use.
Array of numbers (Array<number>):
3. Define the number of members of the array and their values for the 'Bar Graph Data' attribute of the 'Common' category using the 'Bar Graph Data' dialog.
Array of arrays of numbers (Array<Array<number>>)
3. Define the number of data sets of the array for the 'Bar Graph Data' attribute of the 'Common' category using the 'Bar Graph Data' dialog.
4. Define the number of members of the array and their values using the 'Bar Graph Data' dialog.
Items | List of all objects added |
|---|---|
| Delete the selected object |
| Change the object order (top = left) |
| Add a new object |
If you have selected the data structure 'Array<Array<number>>', you can first define different arrays, each representing a bar graph.
|
Name |
Description |
|---|---|
Array | Definition of an array of numbers representing a data set to be displayed as a bar graph |
Each of these arrays has entries that you can define using the second version of the dialog. If you use the data structure 'Array<number>', this dialog is offered directly.
|
Name |
Description |
|---|---|
Number | Definition of a value from a data set to be displayed as a bar graph |
PLC
1. Add a bar chart to the interface.
2. Link the array to the 'Bar Graph Data' attribute of the 'Common' category.
Schema: tchmi:framework#/definitions/TcHmi.Controls.Beckhoff.TcHmiBarChart.ChartBarGraphDataDefinitionList
Attribute getter
public getBarGraphData(): number[][] | number[] | null;Parameter
Name | Type | Description |
|---|---|---|
- | - | - |
Return value
Type | Description |
|---|---|
The current value of the attribute. |
Attribute setter
public setBarGraphData(valueNew: number[][] | number[] | null): void;Parameter
Name | Type | Description |
|---|---|---|
valueNew | The new value of the attribute. If null is passed, the internal default value is used. |
Return value
Type | Description |
|---|---|
void | No return value. |
![]() | Available from version 1.12.746 |



