In basic xml there are 3 main things that users may want to do with gauges - the most common of which is changing the colors (since there really isn't anywhere else to do this). You can also set the gauge type and set the ranges, and set the colors. Note that if you set the ranges in xml they will always OVERRIDE whatever may be in the search language. Here's an example
<param name="charting.chart.style">shiny</param>
<option name="charting.chart.rangeValues">[0,30,70,100]</option>
<option name="charting.gaugeColors">[0x84E900,0xFFE800,0xBF3030]</option>
To do things like change the axis orientation for the linear and market gauges, as well as to change the gauge to display in percentages you'll need to use advanced xml.
In basic xml there are 3 main things that users may want to do with gauges - the most common of which is changing the colors (since there really isn't anywhere else to do this). You can also set the gauge type and set the ranges, and set the colors. Note that if you set the ranges in xml they will always OVERRIDE whatever may be in the search language. Here's an example
<param name="charting.chart.style">shiny</param>
<option name="charting.chart.rangeValues">[0,30,70,100]</option>
<option name="charting.gaugeColors">[0x84E900,0xFFE800,0xBF3030]</option>
To do things like change the axis orientation for the linear and market gauges, as well as to change the gauge to display in percentages you'll need to use advanced xml.
Thanks for your help - there is a slight error, but you got me close enough. Should have been
[0,30,70,100]
It's possible to do with palettes, but that's the hard way, and unnecessary for simply changing colors. Apparently the easy way hasn't made it to the docs yet.
Default palettes are already set up and wired to simpler properties to make things like this especially easy. There is a property, similar to the seriesColors
property for charts, called gaugeColors
that takes a list of hexadecimal color values. The following is the reverse of the default colors:
<param name="charting.gaugeColors">[0xBF3030,0xFFE800,0x84E900]</param>
You can specify any number of colors. If your gauge has more or less range intervals than the number of colors you specify, the colors will be interpolated as needed.