add_svg_gauge
Create an SVG arc gauge in Power BI that maps a value to a semicircular scale with min/max bounds, and use thresholds to color segments by performance bands.
Instructions
Author an SVG ARC GAUGE measure (DataCategory=ImageUrl): a semicircular gauge mapping the value onto min..max, rendered in-cell. thresholds (optional JSON array of {at,color}, ascending) tint the value arc by the highest band the value clears.
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": {
"sessionId": "<sessionId>",
"table": "<table>",
"name": "<name>",
"valueMeasure": "<valueMeasure>",
"min": "<min>",
"max": "<max>"
},
"name": "add_svg_gauge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | Yes | gauge maximum | |
| min | Yes | gauge minimum | |
| name | Yes | ||
| size | No | svg size in px (square) | |
| table | Yes | ||
| fillColor | No | default arc colour hex | #2E86AB |
| sessionId | Yes | ||
| thresholds | No | JSON array of {at,color} threshold bands (optional), e.g. [{"at":80,"color":"#2E7D32"}] | |
| valueMeasure | Yes | the value measure |