hi!! I searched on several models, changed from the original chart, added tooltip as shown:
https://observablehq.com/d/58383c5acc37a3b6?collection=@d3/d3-brush
I tried to apply the same method, for this chart it is not working. For the mousemove, bisect I added parseDate(d.date), still not working.
https://observablehq.com/d/8ffd8ebf6473de48
many thanks!!
One problem is that youâre using d3.pointer
, which was introduced in d3 6, but are importing d3 version 5. After that, thereâs still a bug because the value
you are passing to bisect
is undefined. I havenât tracked down the root cause, but hopefully this sets you on the way to implementing mousemove interactivity.
1 Like
thanks to you I could find another way to see it.
Now the result is weird, when you move the brush the tooltip doesnât move, Could you suggest any possible solution?
https://observablehq.com/d/c7b94298c83a90dd?collection=@d3/d3-brush