hittest_chart

The hittest_chart function 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

NameDescription

attachmentIndex

Chart index.

datasetIndex

Dataset index (-1 — all datasets).

valueX

X-coordinate, pixels.

valueY

Y-coordinate, pixels.

flags

Flags.

Flags:

HEX flagDescription

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:

CodeDescription
6Failed to fetch the user.
5Report file reading/writing error.
4Wrong input parameters.
Download PDF file
Download Word document

See also