Hi all,
Thank you for taking to time to look at my challenge.
I have created a bump chart in Deneb, with code borrowed from the awesome Darren Gosbell: Darren’s Blog who also credits the wonderful Kerry Kerry’s Blog.
I have adapted the logic to my case as 20 projects with a monthly sales value through a year. The visual shows the monthly sales rank by project for each month.
I have cleaned up the noise on the visual by removing the lines and only having them show when hovering over the line:
The vega-lite I added to do this is as follows in the “Lines Layer” line 96 (see pbix)
"selection": { "hover": { "type": "single", "fields": ["Project ID", "Project_MonthlySales_Rank"], "on": "mouseover", "empty": "none", "clear": "mouseout" } }
What I want to do next is also implement that same logic so the line layer is visible on mouseover when hovering over the “Project ID” field on both y axis as well as when hovering over the circle layer. You can see I have attempted to do this above by adding the “Project ID” field to the hover fields but that isn’t the trick.
Does anyone know how I can add a hover for a mark when mouseover a different mark?
I have tried introducing parameters at the top level to refer to later, such as:
“params”: [
{
“name”: “hover”,
“select”: {
“type”: “point”,
“fields”: [“Project Seasonality_Facts_Project Name”, “Project_MonthlySales_Rank”],
“on”: “mouseover”,
“clear”: “mouseout”
}
}
],
but I was getting [Error] Duplicate signal name: “hover_tuple”.
Here is my .pbix
Deneb Bump Chart.pbix (1.5 MB)
Thank you in advance