Discriminated union describing which binder to run and the config to pass it.
The chartType field narrows the associated config to the correct binder-specific type. This is what useD3Adapter and <MaidrD3> consume.
chartType
config
useD3Adapter
<MaidrD3>
Besides the nine single-chart types, 'facets' (homogeneous small multiples) and 'subplots' (heterogeneous panel grids) select the multi-panel binders.
'facets'
'subplots'
Discriminated union describing which binder to run and the config to pass it.
The
chartTypefield narrows the associatedconfigto the correct binder-specific type. This is whatuseD3Adapterand<MaidrD3>consume.Besides the nine single-chart types,
'facets'(homogeneous small multiples) and'subplots'(heterogeneous panel grids) select the multi-panel binders.