Is it possible to align the HBar X axis labels to the left?


« 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 Victor on 22nd June 2017
Hi Richard,

I need to align x axis labels to left in SVG HBar chart. Is it possible?
Posted by Richard on 22nd June 2017
Hi,

Not the SVG HBar chart no - the canvas version can in conjunction with the drawing API X axis.

I can add this facility though.



Richard
Posted by Victor on 22nd June 2017
Hi,
Thank you, Is there any reference of the canvas version to do so?
Posted by Richard on 22nd June 2017
Hi,

Hold on a second - do you really mean the Y axis? ie where the labels are up the left handside?

Or do you really mean the X axis where the numerical scale is?

If its the axis where the scale is - then no I'm afraid there's no way to do the without delving into the innards of RGraph.

But if you do indeed mean the axis where the labels are - then have a Y axis positioned at an x value of 2, set the align property to right, and then set the color of the axis to transparent.



Richard
Posted by Victor on 22nd June 2017
Hi,
sorry , actually i meant y axis.can you please go through following link. ibb.co/n5ciL5 .
its my actual requirement(left allign). if there is any way to do so, please let me know
Posted by Richard on 22nd June 2017
Hi there,

You can do it with the canvas libraries using the drawing API X axis. I've made an example for you here:

www.rgraph.net/fiddle/view.html/hbar-left-aligned-labels


Richard

Add a reply




« Back to message list