Is it possible to reverse the Gauge chart colors?

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 Tomas on 17th June 2016
Hello.

It's possible to reverse colors in gauge chart: starts from red and finishes to green (or any color I chose)?

Thank's.
Posted by Richard on 18th June 2016
Hi there,

You can. You can either use the following properties:

redColor
yellowColor
greenColor

To set the colors (despite the names you can set them to whatever colors you want). Or you can use the colorsRanges property instead and set the colors to anything you want and using this you can also set more than three colors like this:

colorsRanges: [[-100,-90, 'red'], [-90, -70,'yellow'], [-70, 70, '#0f0'], [70, 90, 'yellow'], [90,100,'red']]

www.rgraph.net/demos/gauge-skeleton.html

All of the Gauge demos are here:

www.rgraph.net/demos/index.html#gauge





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 Tomas on 18th June 2016
Thank's. It work's.

Add a reply




« Back to message list