Troubleshooting
The questions that come up most.
The chart is unstyled
Import
peakcharts/styles.css once, for example in your root layout. Without it the SVG renders without its fonts, colors and layout.Dark mode does nothing
Set
data-theme="dark" on a parent element of the chart. The chart does not read prefers-color-scheme by itself, so toggle the attribute from your own theme logic.I see an error message instead of my chart
That is intentional. Charts reject non-finite numbers, negative values in pie, donut, funnel, treemap, radar and radial charts, negative bubble size, duplicate heatmap pairs, and waterfall totals that overflow. Fix the data and the chart renders.
Does it work with SSR?
Yes. The chart components do not touch
window or document, so they render on the server. In Next.js, import them from any component. The bundle carries "use client".The chart is slow with a lot of points
Charts are SVG and suit modest datasets. Aggregate large data before passing it in.
Can I stack series, zoom, or use a time axis?
Not yet. Each chart draws one series on category axes from static, client-provided data. There is no stacking, zooming, time scale, streaming or canvas rendering.
Still stuck? Open an issue on GitHub.