Turn the renderer option into a factory the chart calls once per pane.
An explicit kind that nothing has registered throws, the way an unloaded
chart type does: the caller asked for a tier they did not import, and a
silent 2D fallback would hide that. A registered factory that declines at
run time (no WebGL2 on this device) falls back to canvas2d instead,
because that is a property of the machine, not a mistake in the code.
Turn the
rendereroption into a factory the chart calls once per pane.An explicit kind that nothing has registered throws, the way an unloaded chart type does: the caller asked for a tier they did not import, and a silent 2D fallback would hide that. A registered factory that declines at run time (no WebGL2 on this device) falls back to
canvas2dinstead, because that is a property of the machine, not a mistake in the code.