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

Message ListMessage List     Post MessagePost Message

  How to add an axis to the right side of the plot?
Posted by Mike Dd on May-30-2016 17:20
Dear Sir/Madam,

In the RealTimeScroll demo, the arriving data always enter the scene from the right side of the plot and then move gradually to the left side.

However, the vertical Y axis is actually on the left side.

Is there a way to put a Y axis on the right side of the plot (i.e. at the place where the new data arrive)?

Thanks a lot!

  Re: How to add an axis to the right side of the plot?
Posted by Peter Kwan on May-31-2016 02:51
Hi Mike,

The API to do this is XYChart.setYAxisOnRight. For example:

c->setYAxisOnRight();

You may have to move the plot area to the left (use a smaller first parameter when calling XYChart.setPlotArea) to leave some space on the right side for the axis labels.

Hope this can help.

Regards
Peter Kwan

  Re: How to add an axis to the right side of the plot?
Posted by Mike Dd on May-31-2016 10:53
Thanks a lot for your help!

Is there a way to have Y-axis on both sides?

  Re: How to add an axis to the right side of the plot?
Posted by Peter Kwan on May-31-2016 22:36
Hi Mike,

You may use XYChart.syncYAxis. For example:

c->syncYAxis();

Hope this can help.

Regards
Peter Kwan

  Re: How to add an axis to the right side of the plot?
Posted by Mike Dd on Jun-01-2016 10:40
It works. Thanks a lot!