The visual layout: position, size and visibility.
The visual name
The parent Power BI page that contains this visual
The visual title
The visual type
Clone existing visual to a new instance.
Exports Visual data. Can export up to 30K rows.
Gets all visual level filters of the current visual.
visual.getFilters()
.then(filters => { ... });
Get slicer state. Works only for visuals of type slicer.
visual.getSlicerState()
.then(state => { ... });
Removes all filters from the current visual.
visual.removeFilters();
Sets the filters on the current visual to 'filters'.
visual.setFilters(filters);
.catch(errors => { ... });
Set slicer state. Works only for visuals of type slicer.
Sort a visual by dataField and direction.
Update the filters for the current visual according to the operation: Add, replace all, replace by target or remove.
visual.updateFilters(FiltersOperations.Add, filters)
.catch(errors => { ... });
Generated using TypeDoc
A Power BI visual within a page
VisualDescriptor
{IVisualNode}