Hi StevenH,
Unluckily, ChartDirector still cannot auto-scale two (or more) independent y-axes and ensure they have the same number of ticks.
For your case, some possible methods are:
(a) Your code may determine the axis scales (eg. using Axis.setLinearScale). In this case, your code can set up the scales so that the two y-axes has the same number of ticks.
(b) You may make the two y-axis dependent, instead of independent. For example, you may set up the second y-axis to be equal to 0.01 of the first y-axis (using XYChart.syncYAxis or Axis.syncAxis). Your code would need to determine the synchronziation factor (perhaps by analyzing the data ranges). The sample code "Pareto Chart" is using this method.
Regards
Peter Kwan |