v0.7.13
Native chart rendering
Charts are now first-class engine primitives. The Rust engine produces PDF vector graphics directly -- no SVG intermediary, no image conversion. Output is crisp at any zoom level with no file size overhead.
All five chart types available in @formepdf/react and the Python SDK:
import { BarChart, LineChart, PieChart, AreaChart, DotPlot } from '@formepdf/react';
<LineChart
series={[
{ name: 'Revenue', data: [42, 58, 51, 73], color: '#2563eb' },
{ name: 'Expenses', data: [38, 44, 47, 52], color: '#dc2626' },
]}
labels={['Q1', 'Q2', 'Q3', 'Q4']}
width={400}
height={200}
/>
New chart types
AreaChart -- multi-series area chart with semi-transparent fill under each line:
<AreaChart
series={[
{ name: 'Users', data: [120, 180, 240, 310] },
{ name: 'Signups', data: [40, 65, 90, 120] },
]}
labels={['Jan', 'Feb', 'Mar', 'Apr']}
width={400}
height={200}
/>DotPlot -- scatter plot with multiple named groups, useful for rating distributions and survey data:
Python SDK
All five chart types now available in formepdf:
from formepdf import BarChart, LineChart, PieChart, AreaChart, DotPlot
doc = Document(
Page(
BarChart(
data=[
{"label": "Q1", "value": 42000},
{"label": "Q2", "value": 58000},
],
width=400,
height=200,
title="Revenue",
)
)
)Migration
| Old | New | Component |
|---|---|---|
data + color |
series + labels |
LineChart |
showDots |
showPoints |
LineChart |
showArea |
use <AreaChart> |
— |
innerRadius |
donut |
PieChart |
showLabels |
showLegend |
PieChart |
barGap, yAxisTicks |
removed (auto) | BarChart |
The old SVG-based implementations remain available as LegacyBarChart, LegacyLineChart, and LegacyPieChart.
Packages
| Package | Version |
|---|---|
@formepdf/core |
0.7.13 |
@formepdf/react |
0.7.13 |
@formepdf/cli |
0.7.13 |
@formepdf/renderer |
0.7.13 |
@formepdf/hono |
0.7.13 |
@formepdf/next |
0.7.13 |
@formepdf/resend |
0.7.13 |
@formepdf/mcp |
0.7.13 |
@formepdf/sdk |
0.7.12 |
@formepdf/tailwind |
0.7.12 |
@formepdf/templates |
0.7.13 |
engine (Cargo) |
0.7.13 |
formepdf (PyPI) |
0.7.13 |
| VS Code extension | 0.7.12 |