Forum Discussion
supportsHighlight ignored, visual still receives filtered data
As I keep saying, there is no highlights array anywhere in the dataview object tree to be seen, in that location, its children, its parents, the "grouped" object for series data, or any other location. It's just not there.
And the data itself is coming through pre-filtered by power bi, so the highlights array would have no use, even if it did show up.
This functionality is simply not working with this setup to start with.
Are the docs on GitHub up to date, do you know?
Perhaps there's another magic switch or a new API I need to use?
As far as I know, this is the only available API. I just replace the capabilities.json of Sample Bar Chart Repo with yours, and I can see the highlights array.
- jcandeias-hc9 years agoRegular Visitor
So it appears to work between custom visuals on the latest API, but other scenarios fail.
For example:
Trigger
Target
Result
Notes
Vanilla Bar Chart
Custom Visual (API 1.6)
OK
Power BI enables the highlight option in the custom visual and the dataview highlights array shows up.
Vanilla Slicer
Custom Visual (API 1.6)
KO
Power BI does not enable the highlight button in the target custom visual to start with.
Chiclet Slicer (API 1.5)
Custom Visual (API 1.6)
KO
Power BI enables the highlight button, however it still filters the data regardless of its selection and the highlights array does not show up.
Custom Visual (API 1.6)
Custom Visual (API 1.6)
OK
Power BI enables the highlight option in the custom visual and the dataview highlights array shows up. Highlighting data only makes sense if the SelectionIds between visuals are compatible, which is OK.
Anyway, this is now under premier support as it has become a blocker.
I'll share any relevant solution back here once we know more.