set_gradient_color
Apply measure-driven gradient colors to treemap, funnel, or map data points, using min/max and optional center color stops.
Instructions
Set a measure-driven GRADIENT-STOP saturation colour on a card that set_color_scale does not target (treemap/funnel/map dataPoint fill). minColor/maxColor (and optional centerColor for a 3-stop ramp) drive the fill by the measure; min/center/max set explicit stop values. card defaults to dataPoint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | ||
| min | No | ||
| card | No | formatting card (default dataPoint) | dataPoint |
| page | Yes | page name or displayName | |
| center | No | ||
| visual | Yes | visual name (treemap/funnel/map) | |
| measure | Yes | measure that drives the colour | |
| maxColor | Yes | high-end colour hex | |
| minColor | Yes | low-end colour hex | |
| centerColor | No | optional centre colour hex (3-stop) | |
| measureTable | Yes | table that owns the measure | |
| reportSessionId | Yes |