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

Message ListMessage List     Post MessagePost Message

  XY Chart axis crossing?
Posted by Michael on May-20-2025 09:32
I have a simple XY Chart whose Y axis range is -10 to +10.  How can I make the X axis cross at Y=0 ?

  Re: XY Chart axis crossing?
Posted by Peter Kwan on May-20-2025 14:25
Hi Michael,

You can use XYChart.setAxisAtOrigin:

https://www.advsofteng.com/doc/cdnet.htm#XYChart.setAxisAtOrigin.htm

The following is an example of using this API:

https://www.advsofteng.com/doc/cdnet.htm#fourq.htm

For your case, I think you can use:

c.setAxisAtOrigin(Chart.XAxisAtOrigin);


Best Regards
Peter Kwan

  Re: XY Chart axis crossing?
Posted by Michael on May-20-2025 20:04
Perfect, exactly what I needed.  Thank you