EJSC.Axis.pointToPixel
See Also
Definition
integer pointToPixel( number coordinate ) object pointToPixel( number coordinate, boolean ignoreBounds )
object result: { p: integer, outsideBounds: boolean }
Description
Converts the chart coordinates based on axis data into the appropriate pixel position for that point (x or y depending on the orientation of the axis)
When ignoreBounds is not specified or specified as undefined, the result will be NaN if the coordinate provided is outside the currently displayed range.
** New in 2.0.1 **
When ignoreBounds is provided the result will be an object which contains the pixel coordinate of the point as p and a flag named outsideBounds which specifies whether the point is within the chart drawing area. See http://www.ejschart.com/examples/advanced/markPoint.html for an example of this usage. |