Arranging the labels on a custom X axis


« 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 akg on 25th November 2016
Hello,

Regarding this custom X axis demo: www.rgraph.net/docs/howto-use-the-drawing-api-x-axis-object.html

Instead of an even split of 5 people in each team, how could I have say 2 people in 'Team A' (Luis, Fred), then the rest in Team B (Pete, Gill, Kevin, Jack, Jill, Freda, Bill, Olga).

Thank you for your time,
Posted by Richard on 25th November 2016
Hi there,

The easiest way would be to add empty labels like this:

www.rgraph.net/fiddle/view.html/an-x-axis-drawing-api-example

The other way (without so many tickmarks) requires you to use two drawing API X axis objects like this example shows:

www.rgraph.net/fiddle/view.html/another-x-axis-drawing-api-example




Richard

Add a reply

 




« Back to message list
RGraph on social media