The labelsAboveSize property on the HBar chart?

Share RGraph:   Share or Like RGraph on Facebook!

« 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 3rd June 2016
Hello,

On the Bar graph, you can specify the property labelsAboveSize, but this is not available on the HBar graph.

Is it possible to add this property on the HBar graph as well?

I like to use a font-size, which is somewhat smaller than the rest for this 'labelsAbove' and have a consistent view on both type of graphs.

Regards,

Jan Dirk
Posted by Richard on 3rd June 2016
Hi there,

Did you want a size for ALL of the labelsAbove text or just a single one?






Richard
Posted by Jan Dirk on 3rd June 2016
Hi Richard,

I'd like to size all of the labelsAbove.

For every horizontal bar in the HBar, the labels right to the bar, I like to have the font to be e.g. 2 pixels smaller than the normal labels.

In the Bar graph, the property for this is called labelsAboveSize, for HBar I would propose to call it also labelsAboveSize to be in sync with the labelsAbove property.

***
labelsAbove
This is a boolean which if true, will cause labels to be shown to the right of the bars. (It's called "above" for API compatibility).
Default: false
***
Posted by Richard on 3rd June 2016
Hi there,

I added the following properties earlier today to the HBar:

labelsAboveColor
labelsAboveUnitsPre
labelsAboveUnitsPost
labelsAboveFont
labelsAboveSize
labelsAboveBold
labelsAboveItalic


New release coming at the weekend (hopefully) so you'll be able to use them then. There'll be a demo here:

www.rgraph.net/demos/hbar-labels-above.html





Richard
Posted by Jan Dirk on 6th June 2016
Thank you very much,

Jan Dirk

Add a reply




« Back to message list