HBar title positioning

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 Paul on 4th January 2013
Hi,

Is there a way to align the chart title left?

Using the chart.title.hpos = 0 cuts off the start of the title :(

Thanks
Posted by RGraph support on 4th January 2013
Hi,

Currently its a little tricky. There's the chart.title.hpos option, which is a number that is multiplied with the entire canvas width to get the x position.

However the thing to remember is that the title is always horizontally centered - so even if you specify zero, you'll only see half of the title (as the other half will be off-canvas.

You could get the title left aligned so it starts at the end of the left gutter, but it will require some maths to work out the position.

PS Could you link to the RGraph website - thanks.

Richard, RGraph Support
Posted by Paul on 4th January 2013
That would explain it.

Ok Thanks
Posted by RGraph support on 4th January 2013
Hi,

You may find it easier to add the title yourself using the ondraw RGraph event:

www.rgraph.net/docs/misc.html#text

PS Could you link to the RGraph website - thanks.

Richard, RGraph Support
Posted by RGraph support on 7th January 2013
Hi,

As a result of this I've just added the following properties which allow you better control over the title:

chart.title.x
chart.title.y
chart.title.halign
chart.title.valign

Richard, RGraph Support

Add a reply




« Back to message list