A colorRamp object is used to specify a range of colors that are applied to a group of symbols.

Referenced by: Color Ramp

Properties

PropertyDetails
colorRamps[]A multipart color ramp is defined by a list of constituent color ramps.
typeValue indicating the type of colorRamp.
Valid value of this property multipart

Multipart Example

{
"type": "multipart",
"colorRamps": [
{
"type": "algorithmic",
"fromColor": [
255,
0,
0,
255
],
"toColor": [
255,
255,
0,
255
],
"algorithm": "esriHSVAlgorithm"
},
{
"type": "algorithmic",
"fromColor": [
0,
255,
255,
255
],
"toColor": [
0,
0,
255,
255
],
"algorithm": "esriHSVAlgorithm"
}
]
}

Multipart Example

{
"type": "multipart",
"colorRamps": [
{
"type": "algorithmic",
"fromColor": [
255,
0,
0,
255
],
"toColor": [
255,
255,
0,
255
],
"start": 0,
"stop": 35,
"algorithm": "esriHSVAlgorithm"
},
{
"type": "algorithmic",
"fromColor": [
0,
255,
255,
255
],
"toColor": [
0,
0,
255,
255
],
"start": 35,
"stop": 100,
"algorithm": "esriHSVAlgorithm"
}
]
}