Is it possible to reverse the Gauge chart colors?

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

Add a reply




« Back to message list