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

Message ListMessage List     Post MessagePost Message

  How do I automatically calculate and plot x values to run the length of the entire x-axis
Posted by Julian Lindars on Jun-16-2011 02:36
Attachments:
Hi, I have set my X-axis labels using LineLayer.setXData, but the autoscaling calculates the axis values so that the min and max are lower and higher than the min and max data points so the line is plotted in the middle of the graph as shown in attached "actual.png".

How do I plot the line to go from min x to max x value as shown in "desired.png", only with x axis labels displayed?

Many thanks
actual.png
desired.png

  Re: How do I automatically calculate and plot x values to run the length of the entire x-axis
Posted by Peter Kwan on Jun-16-2011 18:01
Hi Julian,

You may try:

c.xAxis().setAutoScale(0, 0, 0);
c.xAxis().setRounding(false, false);

Hope this can help.

Regards
Peter Kwan

  Re: How do I automatically calculate and plot x values to run the length of the entire x-axis
Posted by Julian Lindars on Jun-16-2011 19:11
That works a treat, thanks!