Sign in to follow this  
DelvarWorld

How to fix this axis problem?

Recommended Posts

lolbaloneyflaps.jpg

 

As you can see, the y axis value is duplicating data points. There is only point point, and its value is 1. It's not even on the 1 line. Ideally this graph would have one line at 0, one line at 1, and line line at 2. Not so many dividing lines. How can I fix this?

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

Could you please try using numDivLines='1' in the <chart> element?

If this does not help, please do attach your XML so that we can solve the issue as soon as possible.

Looking forward to your reply. :P

Share this post


Link to post
Share on other sites

Nope, that did not solve the problem. Looks like the problem is because I'm using decimals='0', and the chart doesn't handle this well for small data sets. I attached my XML. Removing decimals='0' gives the y axis decimal points, however this would be nonsensical for our dataset as it's impossible to have any fractional numbers with our measurements. Hence decimals='0'

 

 

 

Edit: This is for a multiline 2d chart

brokenchart.xml

Edited by Guest

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

If you use decimals='0' then all the dinline values will be rounded to the next integer. Hence, you were receiving such a output.

To resolve this(for this particular case) please set numDivLines='1' and set yAxisMaxValue='2' in the chart element.

Hope this helps. :P

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