observablehq / plot

A concise API for exploratory data visualization implementing a layered grammar of graphics
https://observablehq.com/plot/
ISC License
4.25k stars 173 forks source link

A grouped tip for multi-series plots #2003

Open mbostock opened 6 months ago

mbostock commented 6 months ago

As shown here: https://observablehq.com/@recifs/plot-grouped-tips

untitled - 2024-02-22T140947 272

pdebruic commented 6 months ago

Would be nice if this could show the interpolated, as drawn, value when data are plotted at unaligned timestamps. https://talk.observablehq.com/t/faceted-multiline-chart-with-tooltips/8720/5

Fil commented 6 months ago

@pdebruic we could open a new discussion about this. By default the interpolation is done by SVG, and Plot only passes path commands to connect the (actual) dots. To find the interpolated values, in the general case, you might need a solver.