The element Plot.plot() returns: an <svg>, or a <figure> wrapping one.
scale and legend are own properties of that element. They survive in the
DOM — Quarto inserts the very node Plot returned — but they do not
survive serialization, so an adapter that finds a plot in a static HTML file
gets the markup without them. Both are therefore optional here, and the
adapter falls back to reading the rendered axis ticks when scale is gone.
The element
Plot.plot()returns: an<svg>, or a<figure>wrapping one.scaleandlegendare own properties of that element. They survive in the DOM — Quarto inserts the very node Plot returned — but they do not survive serialization, so an adapter that finds a plot in a static HTML file gets the markup without them. Both are therefore optional here, and the adapter falls back to reading the rendered axis ticks whenscaleis gone.