Forum Discussion
supportsHighlight ignored, visual still receives filtered data
In capabilities.json, I added the code below, as per the docs:
"supportsHighlight": true
However, the custom visual is still receiving pre-filtered data, regardless of the interaction setting between visuals, and there is no "highlights" property anywhere in the data view object or any of its children objects.
I've tried APIs 1.5 and 1.6. The visual is using series grouping.
Is this feature broken at the moment?
Or is there a new way of declaring support for highlighting and the docs are lagging?
Or am I missing something really obvious and need to get new glasses?
Thanks.
8 Replies
- v-chuncz-msftCommunity Supportjcandeias-hc, As described in the documentation, with this property enabled it is the visual's responsibility to highlight the appropriate data by comparing the values array to the highlights array. The highlights array only appears when you highlight or select a value in other visuals.
- jcandeias-hcRegular Visitor
That's the thing - the values are coming pre-filtered and the highlights array is nowhere to be found, so there's nothing for the visual to work with, It's as if the API is ignoring the setting altogether.
- v-chuncz-msftCommunity Support
Better to share your capabilities.json here. I can see the highlights array by options.dataViews[0].categorical.values[0].highlights.