LineGraphData

Link the array containing the data points to the attribute "Line Graph Data" of the category "Common".

LineGraphData 1:

The array must have two dimensions. This also applies if only one graph is stored in this array. In the latter case the array should be declared as array[1..1, 1..100] OF ST_Point.

aPoints : ARRAY[1..2, 1..100] OF ST_Point;
TYPE ST_Point :
    STRUCT
        x : INT;
        y : INT;
    END_STRUCT
END_TYPE
LineGraphData 2:

The structure elements must be named identically to the attributes defined on the TwinCAT HMI side. Upper and lower case is taken into account.

LineGraphData 3:

Since version 1.12.760 it is also possible to configure the following data types:

  • number[]
  • number[][]

Schema: tchmi:framework#/definitions/TcHmi.Controls.Beckhoff.TcHmiSparkline.LineGraphDataList

Attribute getter

public getLineGraphData(): TcHmiCharting.LineGraph.Point[][], number[], number[][] | null;

Parameter

Name

Type

Description

-

-

-

Return value

Type

Description

TcHmiCharting.LineGraph.Point[][], number[],number[][], null

The current value of the attribute.

Attribute setter


public setLineGraphData(valueNew: TcHmiCharting.LineGraph.Point[][] | number[] | number[][] | null): void;

Parameter

Name

Type

Description

valueNew

TcHmiCharting.LineGraph.Point[][], 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.

LineGraphData 4:

Available from version 14