Range Color
- Last UpdatedJun 25, 2024
- 1 minute read
Use scripts for the Range Color property to define a range of values with colors.
Example
If you want to define a range of values from 0 to 30 with yellow, 30 to 60 with green, and 60 to 100 with red, then code the script for the Range Color property of the control as follows:
return [
{
from: 0,
to: 30,
color: 'yellow'
},{
from: 30,
to: 60,
color:'green'
},
{
from: 60,
to: 100,
color:'red'}];