Is it possible to set the label offset on the Gauge 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 Othmar on 11th August 2016
Hi Richard.

Is it possible to set the space between tickmarks and labels. like: v18i.imgup.net/dist085c.PNG
(radis)

Thanyk you - best regards
Othmar
Posted by Othmar on 11th August 2016
Hi

A little note for my last post: i mean the space between tickmarks and labels from a gauge graph. (radius value)

Othmar
Posted by Richard on 12th August 2016
Hi there,

It's not currently, but I can add that for he next release for you. By way of some new properties:

labelsOffsetr // Radius Offset
labelsOffsetx
labelsOffsety


Richard
Posted by Othmar on 12th August 2016
Hi Richard.

I have seen in the code of the RGraph.gauge.js you have a internaly value named chart.labels.offset. Can you make this value accessible? In my case (very small gauge) the value of -2 instead of 0 is perfect.

best Regards.
Othmar
Posted by Othmar on 12th August 2016
Hi

I think we have wrote the last post at the same time...

Othmar
Posted by Othmar on 12th August 2016
Hi Richard

I this case. Is it possible to set the width of the inner border? (in my case to 0) At my tiny gauges there is many space. So i can save space and the gauge will be shown more clear.
See: n50i.imgup.net/inner4768.PNG
Posted by Richard on 12th August 2016
Hi there,

Actually the labelsOffset option may do exactly what you're after. Try setting it:

...
labelsOffset: -2
...

Though -1 might not be enough for you.

Plus looking at your example you might benefit from turning off tickmarks and the color ranges. Then use labelsOffset to move the labels as you see fit:

...
colorsRanges: [],
tickmarksSmall: 0,
tickmarksBig: 0
labelsOffset: -10
...



Richard
Posted by Othmar on 12th August 2016
Hi,

Yes nice! I never read about the labelsOffset: value. There is nothing in te docs. (www.rgraph.net/docs/gauge.html#labels%20and%20text) Thats is was i have needed.
Looks fine: x46i.imgup.net/knots15e3.PNG
Posted by Richard on 12th August 2016
Hi there,

> Yes nice! I never read about the labelsOffset: value. There is nothing in te docs.

Yes - I think that it needs adding.



Richard
Posted by Othmar on 15th August 2016
Hi Richard,

Can you add labelsOffset also to the meter chart?

Othmar
Posted by Richard on 16th August 2016
Hi there,

Sure, I'll probably add:

labelsOffsetRadius
labelsOffsetAngle
labeslOffsetx
labeslOffsety


Richard
Posted by Othmar on 26th August 2016
Hi,

there are some changes of label offest or bulb radius (other support task from me) in the newest beta?
Posted by Richard on 26th August 2016
Hi there,

In the Gauge chart yes - all of the properties mentioned above have been added:

labelsOffsetRadius
labelsOffsetAngle
labeslOffsetx
labeslOffsety


Richard
Posted by Othmar on 26th August 2016
Hi Richard,

Do you have any small demo, i tested the labelsOffsetAngle but see no change.

Othmar
Posted by Richard on 26th August 2016
Hi there,

That's because I haven't released it yet. It will be in v4.57.


Richard
Posted by Othmar on 11th September 2016
Hi Richard

Do you have implemented the labelsOffsetRadius in the meter chart for v4.57?
I don't see anything like this.

Othmar
Posted by Richard on 12th September 2016
Hi there,

In the Gauge chart yes:

www.rgraph.net/docs/gauge.html#labels%20and%20text



Richard

Add a reply




« Back to message list