Hi Dan,
For XYChart objects, you can obtain the axis tick positions by using Axis.getTicks. Typically, the code structure is like:
.... set up the chart and enter all the data to the chart ....
'Tell ChartDirector it can auto-scale the axis now (as all the data have already been
'entered into the chart)
Call c.layoutAxes()
'An array of numbers representing the tick position in axis units
myTicks = c.yAxis().getTicks()
You may use XYChart.getYCoor if you need to have the coordinate in pixel units, like:
'Pixel coordinate of first tick
myTickYCoor = c.getYCoor(myTicks(0))
Hope this can help.
Regards
Peter Kwan |