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

Message ListMessage List     Post MessagePost Message

  How to Fix Axes in 4 Quadrant Chart
Posted by Abhijit on Aug-09-2011 22:12
Attachments:
Hi,
I need to fix the axis of chart at the middle, irrespective of the data.
Can anybody please help me on this.

I get output as attached image if value is 0.
4 Quadrant Chart.jpg

  Re: How to Fix Axes in 4 Quadrant Chart
Posted by Peter Kwan on Aug-10-2011 02:07
Hi Abhijit,

Currently, if all data values are zero, then there is no data range on the axes, and ChartDirector will default to the axis you see.

For your case, you may consider to add an artificial range by adding a transparent scatter layer with a non-zero point. For example, in C#/Java:

c.addScatterLayer(new double[] { 0.01 }, new double[] { 0.01 }, "", Chart.SquareSymbol, 1, Chart.Transparent, Chart.Transparent);

Hope this can help.

Regards
Peter Kwan

  Re: How to Fix Axes in 4 Quadrant Chart
Posted by Abhijit on Aug-10-2011 02:31
Thanks,
I did similar thing. It is now working.

Thanks for reply.

Can you please suggest the solution for another Question that I have Posted.
I am using ChartDirector 5.0 for Java


Thanks and regards,
Abhijit.