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&params={"attachmentIndex":<uint>,
				 "datasetIndex":<uint>,
				 "pixelX":<int>	}

Parameters

Name Description
attachmentIndex attachment index
datasetIndex dataset index
pixelX x-coordinate

Response

{
	"x":<double>,		/* X axis value */
	"textX":<text>,		/* text value for X coordinate */
	"y":<double>,		/* Y axis value */
	"textY":<text>,		/* text value for Y coordinate */
	"axisX":<text>,		/* name of X axis */
	"axisY":<text>,		/* name of Y axis */
	"msg":{			/* message */
		...
	}
}

Message formats are described in the chapter Data format: Messages.

Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2021 Gurtam