Spacing of the X labels on the examples/line-plot-bands.html example

Share RGraph:   To help my Google visibility (it can't get much worse!), if you like and use RGraph I'd appreciate it if you could link to me

« 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 Jan Dirk on 7th June 2016
Hi Richard,

I just saw your example at

www.rgraph.net/examples/line-plot-bands.html

and noticed that the x-labels are not exactly positioned correctly to my feeling.
When you change the property labels to

labels: ['','','','2013','','','','','','2014','','','','','','2015','','',''],

than the years are positioned better.

Little explanation for others: The graph has 9 grid-bars. This means there are 9+1 vertical lines. When you now have 9+10 labels, you have a label on position 0, a label below every vertical line and a label in the middle of these vertical lines.

Maybe it would be an option, to say that you do not want the labels below the ticks/lines, but between the ticks/lines? At least I most of the times want to have the labels between the ticks.

Regards,

Jan Dirk
Posted by Richard on 7th June 2016
Hi there,

Thanks. It confused me a little but when you add a random letter into the blank label then it becomes clearer - that one of the labels is "shared" between "sections".




Richard

PLEASE READ:

If RGraph has helped you please give your feedback - thanks! You can give your feedback or leave a testimonial by adding a forum post or clicking on the speech bubble icon at the very top right.

But most of all: Please link to the RGraph website! (get information by clicking on the chain icon at the top right of the page)
Posted by Jan Dirk on 7th June 2016
Indeed, that's how I figured it out as well.

Add a reply




« Back to message list