Multiple colors in the meter 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 David on 9th May 2016
I am using the Meter example from www.rgraph.net/examples/meters-and-gauge-charts.html and would like to use 4 colors instead of just 3 (green, yellow, red). Is this possible?

Thanks in advance!
Posted by Richard on 9th May 2016
Hi,

Yes, you can use the colorsRanges option:

obj.set('colors.ranges', [
     [0, 60, 'green'],
     [60, 80 'yellow'],
     [80, 100, 'red']
]);





Richard

Add a reply




« Back to message list