ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Balance dual y-axis labels
Posted by StevenH on Oct-30-2012 03:22
Attachments:
Hi, I'm thinking of rebuilding my plots system I have using ChartDirector package. In the pass I had to create the plot and find out the labels. Update the labels. Rebuild the plot with the updated labels. I was wondering would have to still do that or is their a update or easier way to get the same number of labels on each side.



In the image below their are 7 on the left and 6 on the right. My end users do not all this because it doesn't allow the grid lines to line up and it looks werid.
dualyaxis.png

  Re: Balance dual y-axis labels
Posted by Peter Kwan on Nov-01-2012 23:35
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

  Re: Balance dual y-axis labels
Posted by StevenH on Nov-01-2012 23:38
Thank you was just checking since it be to full version since I last did it.