Tooltips or an API to support their implementationSee original GitHub issue
I like to have tooltips instead of the legend to show the currently hovered value. Would you consider implementing tooltips yourself or alternatively provide an API like
getValuesAtCursor to allow a implementation with libraries like popper.js? Something like this:
- Created 4 years ago
- Comments:12 (12 by maintainers)
Top GitHub Comments
I’m happy with the result. To change it to be confied to the chart area, set
bound = plot. I opted to hide
.cursor-hz always and only show
.cursor-vt when the mouse is over the chart. Maybe this is something you want to consider supporting more directly (e.g. a option to hide a cursor line and some methods to show/hide them). Also maybe
cursorleave events might be useful.
(For some reason that Sandbox only works in Firefox for me)
the third constructor param can now accept an
HTMLElement container to append into. this signature also defers firing hooks until after dom insertion.