Home  ›  Playgrounds  ›  Charts (v1.6.0 → v1.7.0)

Native vector charts — since 1.6.0, charts v2 in 1.7.0

pdfnative's chart block renders bar, horizontal-bar, line, pie, and donut charts — and, since 1.7.0, stacked bars, area, and scatter — as pure PDF path operators: rectangles, line segments, and cubic-Bézier arcs. Zero dependencies, no rasterisation, crisp at any zoom, and PDF/A-safe. Pick a preset, generate, and open the downloaded PDF in any viewer.

View underlying code
Chart features:
  • Typesbar, barH, line (optional markers), pie, donut.
  • Multi-series grouped bars and lines with an auto-generated legend and "nice" 1/2/5×10ⁿ axis ticks.
  • Negative values anchor at a zero baseline automatically.
  • Colours validated (injection-safe); per-series/per-slice palette override.
  • Accessible — tagged mode emits a /Figure with /Alt; solid fills only, so PDF/A-safe.
  • International labels shape correctly (CJK/RTL/emoji) via the standard text pipeline.
  • New in v1.7.0stackedBar / stackedBarH / area / scatter, secondary right axis, log & time scales, per-point data labels, and x-label collision handling (labelStride / labelRotation).

See the Charts guide for the full ChartBlock API.