I'm working on a report design, which has quite specific requirements for chart behavior. Using Deneb, I've created small multiples looking like this, with bars/labels being some sort of KPI, and number below is calendar week:
Using param with select / mouseover I've managed to dynamically change label. Here's my param code:
"params": [
{
"name": "displayOnHover",
"select": {
"type": "point",
"fields": [
"Calendarweek"
],
"toggle": false,
"nearest": false,
"on": "mouseover",
"clear": "mouseout"
}
}
]
And here's my filter code on label text mark:
{
"filter": {
"param": "displayOnHover",
"empty": false
}
}
So all my label change based on which calendar week is being hovered over in barchart. So far, so good. However, there's another requirement. I need to display tooltip for label, and tooltip is another page in Power BI.
My label mark:
"mark": {
"type": "text",
"align": "center",
"dy": -50,
"fontSize": 21,
"fontWeight": "bold",
"tooltip": true
}
Weirdly, tooltip works properly when hovering over barchart (also with tooltip: true in mark), but not for label unless I remove displayOnHover param.
Also I've tried adding another layered mark that wouldn't be filtered by displayOnHover, and it doesn't display tooltip as well, unless I remove displayOnHover param from bar.