BarGraphData

A BarChart can be configured in different ways:

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

BarGraphData 1:

Delete the selected object

BarGraphData 2:

Change the object order (top = left)

BarGraphData 3:

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

number[][] | number[], null

The current value of the attribute.

Attribute setter

public setBarGraphData(valueNew: number[][] | number[] | null): void;

Parameter

Name

Type

Description

valueNew

number[][], number[], null

The new value of the attribute. If null is passed, the internal default value is used.

Return value

Type

Description

void

No return value.

BarGraphData 4:

Available from version 1.12.746