Subplot data structure containing optional legend and trace layers. A subplot groups one or more layers (traces) that share the same coordinate space.
const subplot: MaidrSubplot = { layers: [ { id: '0', type: 'bar', axes: { x: 'X', y: 'Y' }, data: [...] }, { id: '1', type: 'line', axes: { x: 'X', y: 'Y' }, data: [...] }, ],}; Copy
const subplot: MaidrSubplot = { layers: [ { id: '0', type: 'bar', axes: { x: 'X', y: 'Y' }, data: [...] }, { id: '1', type: 'line', axes: { x: 'X', y: 'Y' }, data: [...] }, ],};
Optional
Legend labels for multi-series plots.
CSS selector for the subplot container element.
Array of trace layers in this subplot.
Subplot data structure containing optional legend and trace layers. A subplot groups one or more layers (traces) that share the same coordinate space.
Example