ChartDirector General
Forum Home
Search
Message List
Post Message
[Jan-20-2025 03:28]
x-axis positioned on the zero of the y-axis
(PeterMaz)
[Jan-20-2025 16:22]
Re: x-axis positioned on the zero of the y-axis
(Peter Kwan)
x-axis positioned on the zero of the y-axis
Posted by PeterMaz on Jan-20-2025 03:28
|
Reply
|
Monitor
Attachments:
Image1.jpg
good morning, how can i move x-axis to a certain position of y-axis, as in the picture. thanks
Re: x-axis positioned on the zero of the y-axis
Posted by Peter Kwan on Jan-20-2025 16:22
|
Reply
|
Monitor
Hi PeterMaz,
The API is XYChart.setAxisAtOrigin:
https://www.advsofteng.com/doc/cdnet.htm#XYChart.setAxisAtOrigin.htm
The following is an example with both the x-axis and y-axis centered at the original. For your case, you only need to use x-axis part:
https://www.advsofteng.com/doc/cdnet.htm#fourq.htm
Best Regards
Peter Kwan