Hello,
I am trying to update a Hosted Feature Layer View with a renderer containing a multipart color ramp. I used a color ramp example from the docs docs but could not make it work:
renderer_definition_multipart = {
"type": "classBreaksDef",
"classificationField": field,
"classificationMethod": "esriClassifyQuantile",
"breakCount": 5,
"colorRamp": {
"type": "multipart",
"colorRamps": [
{
"type": "algorithmic",
"algorithm": "esriHSVAlgorithm",
"fromColor": [255,0,0,255],
"toColor": [255,255,0,255],
"start": 0,
"stop": 33.3
},
{
"type": "algorithmic",
"algorithm": "esriHSVAlgorithm",
"fromColor": [0,255,255,255],
"toColor": [0,0,255,255],
"start": 33.3,
"stop": 100
}
]
}
}
# Update renderer
renderer = view.layers[0].generate_renderer(renderer_definition_multipart)
update_drawing_info = {"drawingInfo": {"renderer": renderer}}
view.layers[0].manager.update_definition(update_drawing_info)
The error message I got is shown below. Not sure what is the problem, as I am not missing "algorithm"
Any Idea what I am doing wrong?