In the attached notebook, I have a bar chart built with plot and @mkfreeman’s @mkfreeman/plot-tooltip.
I want to provide a tooltip showing the consumption_grade
which should apply to any given stacked element. I say stacked, as the fill is taken from consumption_grade
, however it doesn’t appear stacked (which is fine) as each consumption_grade happens to fall into different bins.
However, the tooltip is showing as undefined, I expect due to (d) =>Consumption Grade: ${d.consumption_grade}
not being grouped correctly.