mdbook-uplot
An mdbook preprocessor for embedding interactive uPlot charts in your book.
Write chart data as fenced ```uplot code blocks in your markdown and mdbook-uplot renders them as interactive charts.
Quick example
Features
- Bar, line, area, and scatter chart types
- Interactive — tooltips, hover crosshair, drag-to-zoom
- Customizable — hide legend, disable tooltips, set axis ranges, pass any uPlot option via
opts - Zero runtime dependencies — all assets are bundled in the binary
- Dark theme support — automatically adapts to mdbook’s coal, navy, and ayu themes