Chart.pixelToValue Method
Gets the value plotted by the specified axis at a plotting position along an axis.
Parameters
- axis
-
Type: ChartAxis
The axis along which to get the value represented by pixel.
- pixel
-
Type: Number
A plotting position relative to the top-left corner of the chart for rectangular charts, or the center for circular charts. This is an angle if axis is angular.
Return Value
Type: Object - May be null
The value plotted by the axis at pixel, or null if none. The
returned value may be an axis value used to represent the data value from the original data source, such as the category number rather
than the original string value. dundas.controls.ChartAxis.valueToDataValue can be called to convert to the original data
source value. Remarks
If the chart is about to draw, Chart.draw can be called to ensure the returned values correspond with the
next positions of the chart elements.