Commit a6808beb authored by amarcic's avatar amarcic
Browse files

silly tooltip animation

parent 13bfb037
......@@ -89,17 +89,20 @@ export const Histogram = (props) => {
.on("mouseenter", (event, value) => {
const element = svg.selectAll(".bar").nodes();
const index = element.indexOf(;
.text(`${value.lower}-${value.upper}: ${value.values.length}`)
.attr("x", x(value.lower)+x.bandwidth())
.attr("y", y(value.values.length)+3)
//.on("mouseleave", () =>".tooltip").remove())
.attr("height", value => height - y(value.values.length))
.attr("fill", "#69b3a2");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment