hittest_chart
The hittest_chart function is used to get information about a certain point of a chart.
svc=report/hittest_chart¶ms={"attachmentIndex":<uint>,
"datasetIndex":<uint>,
"valueX":<int>,
"valueY":<int>,
"flags":<int>
Parameters
Name | Description |
---|---|
attachmentIndex | Chart index. |
datasetIndex | Dataset index (-1 — all datasets). |
valueX | X-coordinate, pixels. |
valueY | Y-coordinate, pixels. |
flags | Flags. |
Flags:
HEX flag | Description |
---|---|
0x1 | Get help to the chart. |
0x2 | Get help to the marker. |
0x4 | Use the valueX as time. |
Returned result
{
"x":<double>, /* X-axis value */
"textX":"<text>", /* text value for the X-coordinate */
"axisX":"<text>", /* X-axis name */
"y":[
{
"y":<int>, /* Y-coordinate */
"textY":"<text>", /* coordinate is string */
"axisY":"<text>", /* Y-axis */
"name":"<text>", /* chart name */
"color":<uint> /* colour */
},
...
]
"msg":{ /* message */
...
}
}
The message formats are described on the messages page.
Possible error codes:
Code | Description |
---|---|
6 | Failed to fetch the user. |
5 | Report file reading/writing error. |
4 | Wrong input parameters. |