Type definitions for MAIDR's Observable Plot adapter.
Observable Plot renders a chart to an <svg> element — wrapped in a
<figure> when the plot declares a title, subtitle, caption, or legend —
and hangs two functions off the returned node: scale(name) and
legend(name). Those functions are how the adapter recovers the data behind
the drawn marks, so the types below describe them rather than the chart
options a user passed to Plot.plot(), which the adapter never sees.
Type definitions for MAIDR's Observable Plot adapter.
Observable Plot renders a chart to an
<svg>element — wrapped in a<figure>when the plot declares a title, subtitle, caption, or legend — and hangs two functions off the returned node:scale(name)andlegend(name). Those functions are how the adapter recovers the data behind the drawn marks, so the types below describe them rather than the chart options a user passed toPlot.plot(), which the adapter never sees.