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

Message ListMessage List     Post MessagePost Message

  syncYAxis not fully syncing...
Posted by seo on Jan-02-2018 00:30
Attachments:
Hi,

I make syncYAxis with two line of code

    volChart->setYAxisOnRight(false);
    volChart->syncYAxis();


the number scale of two axis is syncing, but the uint "M" behind of tick label is not syncing,

is there something that i missed?
20180102002416.png

  Re: syncYAxis not fully syncing...
Posted by Peter Kwan on Jan-02-2018 15:49
Hi seo,

For syncAxis, only the axis scale is synchronized. The labels, label format or style are not synchronized. In many usages, the two axes are intended for different display. For example, one in English, and the other in Chinese. Sometimes one axis is for displaying the normal labels, and the other axis for displaying custom marks (such as the marks for previous close, etc) at different positions.

If you want the same label format, please use copyAxis. For example:

volChart->yAxis2()->copyAxis(volChart->yAxis());

Note that the label style (the font, font size, colors, etc) is still not copied. If you need two axes to be identical, you would need to configure the same styles too.

Hope this can help.

Regards
Peter Kwan

  Re: syncYAxis not fully syncing...
Posted by seo on Jan-02-2018 16:46

Get it done with your code!

Thanks Peter!