I have average temperature and rain data for each day of the year, with that data I am trying to create a graph to show everything in the same graphs. Im almost done but I am having an issue with the tooltips.
Here’s my demo: https://codepen.io/markpx/pen/BeyMdx
My chart has 4 splines, one for maximum, one for minimum and one for median temperatures, and one for rain for each day of the year (this one uses a secondary Y axis). That works fine, but I want to add a bar chart behind the splines, to show the accumulated rain for each month (I don’t have that data yet so I hardcoded some random numbers just for testing).
I added a second X axis for the bar chart because that’s the only way I found for the bars to fill the entire month, and now if I use toolTip: { shared: true }, I can only see the tooltip for the bar chart, if I remove that code I can mouseover each line and bar individually and the tooltip works fine that way, but I want it shared.
Any workaround?