Open hellochar opened 7 years ago
We use this right now to render tooltips on grid plots, but it should be easy enough to migrate to an HTML-based implementation.
I've tried following the tooltip tutorial (http://plottablejs.org/tutorials/tooltips/) with plottable v3.1.1. It doesn't work.
apparently the API of .foreground() has changed?
Hey @danielbaak our website and docs aren't up to date for 3.1.1 yet - see #3342. We haven't modified the .foreground() api yet though; what exactly goes wrong?
@hellochar Im also seeing issues with using .foreground(). Ive spent lots of time debugging this but still cant pinpoint why all my custom drawing (lines, crosshairs) no longer work, they all use similar code to this crosshair example, as in var crosshairContainer = plot.foreground().append("g") in http://plottablejs.org/examples/finance/
@zmandel can you file a separate issue with a repro of what you're seeing? I'll take a look :)
@hellochar thank you! https://github.com/palantir/plottable/issues/3382
Component adds a foreground() and background() svg element to every Component. This are not used in our own code and only exist as a convenience for users to add custom visuals before/after the content. In an HTML world this may not make sense anymore (or at least they shouldn't be SVG specific).
Look into removing them: see if our users use it and how they use it.