Trying to get the value of the centerpinColor with 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 Todd R on 16th June 2016
I'm trying to get the value of the centerpinColor of a gauge. The name of the gauge is gauge0 and I'm trying to use gauge0.get('centerpinColor'). It's returning undefined.

Thanks,

Todd
Posted by Richard on 16th June 2016
Hi,

No idea. There's a sample of the gauge returning the centerpin color here:

www.rgraph.net/fiddle/view.html/a-simple-gauge-chart

Try posting the address to the page in question.







Richard
Posted by Todd R on 17th June 2016
It works in chrome but I tried it on 2 different systems with IE11 (windows 7) and both come up 'undefined' instead of 'blue'. Seems to be an issue with IE.

Todd
Posted by Richard on 17th June 2016
Hi,

Ok, in the RGraph configuration capital letters can be interchanged with dots and lowercase letters instead. So try that:

www.rgraph.net/fiddle/view.html/a-simple-gauge-chart






Richard
Posted by Richard on 17th June 2016
Hi there,

I've just had a bit more of a look at this and it seems that using the same code that the .set() method uses to replace uppercase characters works better, so I'll be using that in the various get() functions from now on.





Richard
Posted by Todd R on 17th June 2016
Any idea how I can try this? What file was changed, etc.

Thanks,

Todd
Posted by Richard on 17th June 2016
Hi there,

I released a new beta today - so try using that.

www.rgraph.net/download





Richard
Posted by Todd R on 17th June 2016
RGraph4_2016-06-12-112210-beta?
Posted by Richard on 17th June 2016
Hi there,

No the file is:

www.rgraph.net/downloads/RGraph4_2016-06-17-144845-beta.zip

The page is probably an older cached version.

Richard
Posted by Todd R on 17th June 2016
Perfect!

Thanks,

Todd

Add a reply




« Back to message list