Overview
--plot-*:root
stencila render report.smd report.htmlToken Bundle
plotTheme.ts--plot-theme: none
--plot-aspect-ratio--plot-width--plot-height--plot-dpi | |
--plot-height-min--plot-height-max | |
--plot-color-1--plot-color-12 | |
--plot-shape-1--plot-shape-8 | |
--plot-line-type-1--plot-line-type-6 | |
--plot-ramp-start--plot-ramp-end | |
--plot-background--plot-panel | |
--plot-panel-border | |
--plot-grid-color--plot-grid-width--plot-grid-x-width--plot-grid-y-width | |
--plot-text-color--plot-font-family--plot-font-size--plot-title-size--plot-subtitle-size | |
--plot-padding-* | |
--plot-axis-line-color--plot-axis-line-width--plot-axis-title-* | |
--plot-legend-* | |
--plot-tooltip-* | |
--plot-point-opacity--plot-point-size--plot-line-width--plot-area-opacity |
Implementation Notes
Plot tokens are read from CSS variables and cached; theme changes clear the cache and recompile plots. Renderer adapters live in image-object-plotly.ts, image-object-vegalite.ts, and image-object-echarts.ts. Theme change handling is wired in image-object.ts. Plot theme presets are documented in tokens/plots.smd.