From ec07c812dd4dbbffe1609af36ed139fb0569f7f2 Mon Sep 17 00:00:00 2001 From: Richard Hitier Date: Sat, 10 Apr 2021 21:23:37 +0200 Subject: [PATCH] Fix hover on grouped bar --- app/main/static/js/charges.js | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/app/main/static/js/charges.js b/app/main/static/js/charges.js index 91f4af9..5ce606b 100644 --- a/app/main/static/js/charges.js +++ b/app/main/static/js/charges.js @@ -175,6 +175,7 @@ function build_chart(div_selector, data_url, project_name, category) { .attr("width", xCategories.bandwidth()) .attr("height", d => height - yScale(d.value)) .attr("fill", d => colorScale(d.key)) + .attr("class", "bar") .on("mouseover", mouseovergrouped) .on("mousemove", mousemove) .on("mouseleave", mouseleave); -- libgit2 0.21.2