Same Y axis/scale for bar and line in combined bar/line chart


« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Tomi on 31st July 2014
Hi,

Is it possible to use the same yaxis and scale for both bar and line in a combined bar/line chart? For example, in demo "A basic example of a combined Bar/Line chart" (www.rgraph.net/demos/basic-combined.html) the first line value is 14 but in the chart this value seems to be about 75 according to yaxis.

Best regards,
Tomi
Posted by Richard on 31st July 2014
If you want them to be the same you can set the ymax value to match the Bar chart. EG

obj.set('ymax', 250);








Richard
Posted by Tomi on 1st August 2014
I'm new with Rgraph...I noticed that in my test I had set xaxispos: center for the line,
that's why line didn't match yaxis of the bar. I removed that and now it's working...
Thanks anyway!

/Tomi

Add a reply

 




« Back to message list
RGraph on social media