add_visual
Add a visual to a Power BI report with explicit role bindings. Bind data fields to roles like Category, Y, Rows, Columns, or Values for charts, pivot tables, cards, slicers, and tableEx.
Instructions
Add any visual type with explicit role bindings. bindings = JSON array of {role,table,field,kind}. Roles depend on visualType (e.g. Category/Y for charts, Rows/Columns/Values for pivotTable, Values for card/slicer/tableEx).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| title | No | ||
| width | No | ||
| height | No | ||
| bindings | Yes | JSON array of {role,table,field,kind} | |
| pageName | Yes | ||
| visualType | Yes | visual type id, e.g. card, tableEx, pivotTable, slicer, clusteredColumnChart, lineChart | |
| reportSessionId | Yes |