add_deneb_visual
Add a custom Deneb (Vega/Vega-Lite) visual to a Power BI page, binding data roles and configuring spec, provider, render mode, and tooltips.
Instructions
Add a DENEB (Vega / Vega-Lite) custom visual to a page: registers the Deneb guid, adds the visual, binds dataRoles into Deneb's 'values' data role, and writes objects.vega[0].properties (jsonSpec one-lined + single-quoted in a literal, jsonConfig, provider=vega|vegaLite, renderMode=svg|canvas, enable* booleans). spec/config = JSON strings. dataRoles = JSON array of {table,field,kind}. FLAG: visualGuid defaults to the published Deneb guid - confirm in Desktop.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | ||
| w | No | ||
| x | No | ||
| y | No | ||
| name | Yes | a label/title for the visual | |
| page | Yes | page name or displayName | |
| spec | Yes | the Vega/Vega-Lite spec as a JSON string | |
| config | No | optional Vega config as a JSON string | |
| provider | No | vega | vegaLite | vegaLite |
| dataRoles | No | JSON array of {table,field,kind} to bind into Deneb's data role | |
| renderMode | No | svg | canvas | svg |
| visualGuid | No | override the Deneb visual guid (confirm in Desktop) | |
| enableTooltips | No | enable Deneb tooltips | |
| enableHighlight | No | enable Deneb cross-highlight | |
| enableSelection | No | enable Deneb selection | |
| reportSessionId | Yes |