HBar with Y axis positioned at the right

Share RGraph:   Share or Like RGraph on Facebook!

« 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 Luiz Varanda on 17th May 2014
Hello! I am using HBar and all my data have negative values so I need to position the YAxis at the far right of the chart (there's no need for space for positive values). The settings only allow me to position the YAxis on "left" or "center". How can I move it all the way to the right? Thanks!
Posted by Richard on 19th May 2014
There's no option to have the axis on the right at the moment - I'll look at adding that. In the mean time you could set units.pre to a negative sign to indicate that the figures are negative.

obj.set('units.pre', '-');




Richard
Posted by Richard on 22nd May 2014
And here's a picture of the horizontal bar chart now supporting a right Y axis:

www.rgraph.net/tests/hbar-right-yaxis.png

It will be a part of the next release if you want to use it.

Cheers.




Richard
Posted by Luiz Varanda on 22nd May 2014
Great! When do you think the next release will be ready?

Thanks!
Posted by Richard on 23rd May 2014
There'll be a beta this weekend, but if it's a stable release you want - that'll be towards the end of June.





Richard
Posted by Luiz Varanda on 23rd May 2014
Great! Does this beta have the "right Y Axis" feature?
Posted by Richard on 23rd May 2014
Yup.


Richard
Posted by Richard on 23rd May 2014
I'll add that you'll be able to download it here:

staging.rgraph.net (guest/password)



Richard
Posted by Luiz Varanda on 25th May 2014
Hi again! I've downloaded the beta version from the staging website... changed the property 'yaxispos' to 'right' on the horizontal bar chart and the YAxis moved as expected!!! :))) Thank you!!

Add a reply




« Back to message list