Forum Discussion
supportsHighlight ignored, visual still receives filtered data
- jcandeias-hc9 years agoRegular 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-msft9 years agoCommunity Support
Better to share your capabilities.json here. I can see the highlights array by options.dataViews[0].categorical.values[0].highlights.
- jcandeias-hc9 years agoRegular Visitor
Below is the full capabilities.json file.
I'm wondering if any of the query behaviour I'm requesting is breaking the highlight functionality in some way.
Or perhaps I need to do something extra that main docs don't mention?
I've tried different setups but nothing is triggering the highlight behaviour - i.e. getting the full unfiltered data back and a highlight array anywhere in data view object tree that I can use.
Interestingly, when editing interactions on a report, the little pie-chart-like "give me a highlight" switch does show up on top of the custom visual, indicating Power BI is recognizing the setting in the capabilities.json file. It just doesn't do anything about it and still pre-filters data based on other visual's selections, regardless of the switch being selected or not.
Thanks for looking into this.
{ "supportsHighlight": true, "dataRoles": [ { "displayName": "Axis", "name": "axis", "kind": "Grouping" }, { "displayName": "Series", "name": "series", "kind": "Grouping" }, { "displayName": "Lines", "name": "lines", "kind": "Measure" }, { "displayName": "Values", "name": "values", "kind": "Measure" } ], "dataViewMappings": [ { "conditions": [ { "axis": { "max": 1 } }, { "series": { "max": 1 } }, { "values": { "max": 1 } } ], "categorical": { "categories": { "for": { "in": "axis" }, "dataReductionAlgorithm": { "sample": {} } }, "values": { "group": { "by": "series", "select": [ { "bind": { "to": "values" } }, { "bind": { "to": "lines" } } ] } } } } ], "objects": { "yAxis": { "displayName": "Y Axis", "properties": { "scaleType": { "displayName": "Scale Type", "type": { "enumeration": [ { "displayName": "Linear", "displayNameKey": "Linear", "value": "Linear" }, { "displayName": "Log", "displayNameKey": "Log", "value": "Log" } ] } }, "position": { "displayName": "Position", "type": { "numeric": true } } } }, "xAxis": { "displayName": "X Axis", "properties": { "format": { "displayName": "Format Mask", "type": { "text": true } }, "rotation": { "displayName": "Rotation", "type": { "numeric": true } }, "position": { "displayName": "Position", "type": { "numeric": true } }, "ticks": { "displayName": "Ticks", "type": { "numeric": true } } } }, "seriesShapes": { "displayName": "Series Shapes", "properties": { "shape": { "displayName": "Shape", "type": { "enumeration": [ { "displayName": "Regular", "displayNameKey": "Regular", "value": "Regular" }, { "displayName": "Vertical Line", "displayNameKey": "VerticalLine", "value": "VerticalLine" } ] } } } }, "colorSelector": { "displayName": "Data Colors", "properties": { "fill": { "displayName": "Color", "type": { "fill": { "solid": { "color": true } } } } } } } }