Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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