hittest_chart

The hittest_chart method is used to get information about a certain point of a chart.

Copied!
svc=report/hittest_chart&params={"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

Copied!
{
	"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.

If you find a mistake in the text, please select it and press Ctrl+Enter.