|
Crosshair labels for multiple Y-axis's |
Posted by srinivas on Aug-23-2016 13:23 |
|
Hi Peter Kwan,
I implemented finance chart with track line and cross hair features. Every thing working fine. But My Chart have multiple Y-axis's. I'm getting cross hair labels for two Y-axis and I want cross hair labels for all Y-axis's.
sample for multiple Y-axis is attached.
|
Re: Crosshair labels for multiple Y-axis's |
Posted by srinivas on Aug-24-2016 15:20 |
|
Yes, I tried. every thing working fine. I'm getting cross hair label for both Y-axes. Now I have another question, I added two more Y-axes and I need cross hair label for that axes also.
|
Re: Crosshair labels for multiple Y-axis's |
Posted by Peter Kwan on Aug-25-2016 01:37 |
|
Hi srinivas,
In Javascript, you can obtain the two extra axes with:
yAxisY3 = c.getAxis(4);
yAxisY4 = c.getAxis(5);
In this way, you can use the same code to add crosshair labels to these axes.
(The xAxis(), xAxis2(), yAxis(), yAxis2() are internally numbered from 0 to 3. so the extra axes start from 4 onwards.)
Regards
Peter Kwan |
Re: Crosshair labels for multiple Y-axis's |
Posted by srinivas on Aug-25-2016 14:23 |
|
Thanks Peter perfect!!! That should be what i need. |
|