HI_SetGraphXY_Data
%HI_SetGraphXY_Data function
Function
The function allows to set coordinates (x, y) of graphic flow' individual values in defined displayer of XY Graph type (Control function).
Declaration
%HI_SetGraphXY_Data(
INT in refId,
INT in index,
HBJ in xyData,
) Parameters
refId | Reference to displayer of XY Graph type |
index | Serial number of graphic flow. |
xyData | Local variable of STRUCT type (structured one), that contains values of the graphic flow (min. 2 column). The first column contains x-coordinates and the second column contains y-coordinates. |
Example
ENTRY SendData_OnClick
RECORD (SD.XYData) _xy
REDIM _xy[12]
_xy[1]^X := 1.0
_xy[1]^Y := 1.0
_xy[2]^X := 1.5
_xy[2]^Y := 1.2
_xy[3]^X := 2.1
_xy[3]^Y := 0.8
_xy[4]^X := 2.5
_xy[4]^Y := 4.5
_xy[5]^X := 5.0
_xy[5]^Y := 1.0
_xy[6]^X := 4.0
_xy[6]^Y := 5.0
_xy[7]^X := 3.0
_xy[7]^Y := 1.0
_xy[8]^X := 6.0
_xy[8]^Y := 3.0
_xy[9]^X := "xx"
_xy[9]^Y := 1.0
_xy[10]^X := 8.0
_xy[10]^Y := 2.0
_xy[11]^X := 10.0
_xy[11]^Y := 5.0
_xy[12]^X := 11.0
_xy[12]^Y := 2.0
%HI_SetGraphXY_Data(_Graph, 1, _xy\HBJ)
%HI_SetGraphXY_Data(_Graph, 2, _xy\HBJ)
END SendData_OnClick