Dynamically assigning chart.red.start on Gauge chart from jQuery val


« 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 Mike on 10th June 2013
I'm sorry if this was asked before, but I wasn't able to find it. I'm using a customized Gauge graph, but I'd like the various threshholds (min value/max value/red start/etc) dynamically pulled from a database. Currently I'm putting the values onto the page and I grab those values when the gauge is created. This is working perfectly for almost every threshhold I'm working with (as long as I use parseFloat() for the value, except the chart.red.start...

Has anyone tried this, or know of a way I can get this to work? Thanks in advance!
Posted by RGraph support on 11th June 2013
Hi there,

You could try setting it mnually instead of getting it from the database to start with:

obj.Set('chart.red.start', 7);

                


Richard, RGraph Support

5 developer license with Priority support for £299:
   www.rgraph.net/license#five-developer

Add a reply

 




« Back to message list
RGraph on social media