set_map_conditional_formatting
Apply measure-driven conditional coloring to map visuals. Set fill colors via discrete bands (min/max/color) or gradient scales (min/max/center) to encode data values.
Instructions
Set measure-driven conditional FILL on a filledMap/azureMap filled layer (dataPoint fillColor). Pass rules = JSON array of {min,max,color} bands for discrete CF, OR minColor+maxColor (and optional centerColor) for a gradient. target defaults to fill. Verify the render in Desktop.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"reportSessionId": "<reportSessionId>",
"page": "<page>",
"visual": "<visual>",
"measureTable": "<measureTable>",
"measure": "<measure>"
},
"name": "set_map_conditional_formatting"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | page name or displayName | |
| rules | No | JSON array of {min,max,color} bands (discrete); omit for gradient | |
| target | No | fill (default) | fill |
| visual | Yes | filled-map visual name | |
| measure | Yes | measure that drives the colour | |
| maxColor | No | gradient high colour hex | |
| minColor | No | gradient low colour hex (use with maxColor) | |
| centerColor | No | gradient centre colour hex (3-stop) | |
| measureTable | Yes | table that owns the measure | |
| reportSessionId | Yes |