Sign in to follow this  
Guest Madhumita

Zero value in Dual Y axis

Recommended Posts

Hi there,

Is it possible to have  zero values aligned in a dual Y axis graph (MSCombiDY2D) even if the primary axis has negative values and the secondary has not?

Thanks,

Fabian

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

You can align the zero values of both secondary and primary y-axis by setting equal SYAxisMaxValue and PYAxisMaxValue, and equal SYAxisMinValue and PYAxisMinValue.

 

Please refer to the attached XML together with the screen-shot of the chart.

 

Hope this helps. :D

data.xml

post-6209-128441577412_thumb.jpg

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

You will get the zero-values to align by the mentioned method.

However, the fixing of the max and min values to the same of the two axes to be equal will not look visually pleasing.

e.g. If primary axis max value is 6 million and this is equated with that of the secondary axis , then the limit of secondary axis will assume a 6million% value.

 

Could you please attach the XML you are working on so that we may try to implement it?

 

Awaiting your reply. :D

Share this post


Link to post
Share on other sites

Hello,

 

 

 

I am not able to get the zeros to align in the two Y axes even after specifying same min and max values for both PYAxis & SYAxis.

 

 

 

The xml is attached. Using MSStackedColumn2DLineDY chart, FusionCharts ver 3.1

 

 

 

Thanks,

 

Mridul

chart.xml

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

The MSStackedColumn2DLineDY chart does not support the PYAxisMinValue attribute.

 

Please set PYAxisMaxValue="10" SYAxisMaxValue="10"  SYAxisMinValue="-16" in the <chart> element and the zero plane will be aligned.

I am attaching your XML, where I have made this change for your reference.

 

Hope this helps.

data.xml

Share this post


Link to post
Share on other sites

Thanks!

 

 

 

The dataset values are generated dynamically. What you are suggesting would amount to finding out the minimum for the PYAxis through a pre-parse (and stacking calculations) of the dataset that itself is based on some complex structures.

 

 

 

This should ideally be done by the chart, isn't it?

 

 

 

Regards,

 

Mridul

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello Mridul,

As of now, you have to manually set the limits of the two axes to align them.

Your suggestions are very important to us. We have made a note of the same.

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
Sign in to follow this