G10

MultiColumnDualY Negative values throws chart off balance

Recommended Posts

MultiColumnDualY Negative values throws chart off balance

 

The bars are ok to be negative, but not the line (dual y).

 

 

 

For Ex.

 

Xaxis is Hours

 

Primary Y axis has negative sales

 

Secondary Y axis is suppose to start at 0, Percentage Based, so when you have negative values this %=100, so should not be negative value.

 

But then the chart is misaligned, I tried playing with min / max values, didn't go, is their a way to set the min value of Secondary Y Axis to min value of Primary Y axis.

 

thanks

 

 

 

XML of what i am doing. ignore numbers, i know this example is not percentage based, but you get the idea.

 

[ code ]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[/ code ]

sparkXML.xml

Edited by Guest

Share this post


Link to post
Share on other sites

Hi,

Welcome to FusionCharts Forum. :D

This issue is occuring because the second data-set is plotted against the Secondary Y-Axis.

In PYAxis where one div line is representing the negative point, the same div line represents a positive value for the SYAxis.

This cannot be changed until you give the value explicitly corresponding with PYAxisValues.

Please revert in case you have any further queries on the same.

Edited by Guest

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