Trying to get the value of the centerpinColor with the Gauge chart

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 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 a link to the page in question.







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 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

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 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

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 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

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 on how to do it by clicking on the chain icon at the top right of the page)
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

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 on how to do it by clicking on the chain icon at the top right of the page)
Posted by Todd R on 17th June 2016
Perfect!

Thanks,

Todd

Add a reply




« Back to message list