Commit ec07c812dd4dbbffe1609af36ed139fb0569f7f2

Authored by hitier
1 parent 22397f43

Fix hover on grouped bar

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
app/main/static/js/charges.js
@@ -175,6 +175,7 @@ function build_chart(div_selector, data_url, project_name, category) { @@ -175,6 +175,7 @@ function build_chart(div_selector, data_url, project_name, category) {
175 .attr("width", xCategories.bandwidth()) 175 .attr("width", xCategories.bandwidth())
176 .attr("height", d => height - yScale(d.value)) 176 .attr("height", d => height - yScale(d.value))
177 .attr("fill", d => colorScale(d.key)) 177 .attr("fill", d => colorScale(d.key))
  178 + .attr("class", "bar")
178 .on("mouseover", mouseovergrouped) 179 .on("mouseover", mouseovergrouped)
179 .on("mousemove", mousemove) 180 .on("mousemove", mousemove)
180 .on("mouseleave", mouseleave); 181 .on("mouseleave", mouseleave);