razvan.deac

Align zero values in dual y axis

Recommended Posts

Guest Sumedh

Hi,

 

Try using syncAxisLimits attribute. Set this attribute as "1".

 

Ref. Code:

<chart ... syncAxisLimits='1'>

 

This attribute will synchronize the limits of both the primary and secondary axes.

Share this post


Link to post
Share on other sites

Hi,

 

Thanks for reply.

What if we have on one axes a unit measure and on the other we have %, the result won't be exactly right. Please tell me if I'm missing something.

 

Razvan

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

Since "syncAxisLimits=1" attrubute will synchronize the limits of both the primary and secondary axes, both the primary and secondary axis value range will be equal, which will not fit for percentage values of sYAxis.

 

So, aligning of zero values for 2 axes with different min/max values on each, is not possible.

Share this post


Link to post
Share on other sites
Guest Rishab
Hi,
 
It is not possible to synchronize the zero plane of the Primary and the Secondary Y-Axis.
 

However, by setting the value of the attributes 'SYAxisMinValue'  and 'SYAxisMaxValue' of the <chart> element to '-12' and '8' respectively, you can get the required highlighted output but this workaround will not work if the data value range will vary from the ones provided in the screenshot.

 

 

post-47865-0-98453600-1379654775_thumb.jpg

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now