Get info about point in chart
To get information about certain point of the chart, use the command report/hittest_chart:
svc=report/hittest_chart¶ms={"attachmentIndex":<uint>,
"datasetIndex":<uint>,
"valueX":<int>,
"valueY":<int>,
"flags":<int>
Parameters
Name | Description |
attachmentIndex | chart's index |
datasetIndex | dataset index (-1 - all datasets) |
valueX | x-coordinate, pixels |
valueY | y-coordinate, pixels |
flags | flags |
Flags
Flag HEX | Flag DEC | Description |
0x1 | get help to chart | |
0x2 | get help to marker | |
0x4 | use valueX as time | |
Response
{
"x":<double>, /* X axis value */
"textX":<text>, /* text value for X coordinate */
"axisX":<text>, /* name of X axis */
"y":[
{
"y":<int>, /* Y coordinate */
"textY":<text>, /* coordinate is string */
"axisY":<text>, /* axis Y */
"name":<text>, /* name of chart */
"color":<uint> /* color */
},
...
]
"msg":{ /* message */
...
}
}
Message formats are described in the chapter Data format: Messages.