Changing the text orientation of X axis Labels on Bar 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 Eldho on 24th March 2014
Hi
I want to Draw a simple Horizonatal Barchart with Many values accros X axis
As the Labels are lengthy , they are not visible ( Overlaping)
Wishes to display labels it on Vertical and if possiblewrapping text to two lines

Thanks
Eldo Paulose
Posted by Richard on 24th March 2014
Hi there,

The documentation for the HBar is here:

www.rgraph.net/docs/hbar.html

And examples of the HBar are here:

www.rgraph.net/demos/index.html#hbar

If you need labels across multiple lines you can use carriage returns:

obj.Set('labels', ['First line\r\nSecond line']);

Like this:

www.rgraph.net/demos/hbar-drawing-api-xaxis.html





Richard
www.rgraph.net
If RGraph has helped you - please share the website - thanks!

Add a reply

 




« Back to message list
RGraph on social media