Sign in to follow this  
jmann

Bar Chart Problem

Recommended Posts

We are creating 2D Bar charts through xml. We are having a problem where sometimes charts with a lesser value will be longer than charts with a bigger value. For instance, a chart with a value of 69 will be longer than one with a value of 80. This doesn't happen in all cases. This is what an example looks like:

 

 

 

Picture1.png

 

 

 

We are dynamically generating the code to display these, but I can't see why it would skew the graph... Here is the generated HTML (sorry the code shortcut wouldn't display the object right, so I had to make images):

 

 

 

Top Graph (69)

 

Picture2.png

 

 

 

Bottom Graph (80):

 

Picture3.png

 

 

 

I know there is a height difference in the object but I have played with that and made them identical.

 

 

 

Can anyone see something wrong with the code?

 

 

 

Thanks for any help.

 

 

 

Josh

Edited by Guest

Share this post


Link to post
Share on other sites

Josh,

The height of each bar in the chart also depends on the y-axis scale of each chart. If you want all charts to have similar scale, you'll need to manually set them as : <chart yAxisMaxValue='xx' yAxisMinValue='yy' ..>

Share this post


Link to post
Share on other sites

Pallav-

 

 

 

Thank you for your help. Your suggestion worked perfectly.

 

 

 

I really appreciate the quick response.

 

 

 

Regards,

 

 

 

Josh

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