---
title: "Best chart library for a Next.js dashboard"
description: "Compare Recharts, shadcn charts, Tremor, Nivo, Chart.js, ECharts, and visx for a Next.js SaaS dashboard. SVG or canvas, App Router, and dark mode."
canonical: https://datalighthouse.dev/guides/best-chart-library-nextjs-saas-dashboard
last-updated: 2026-11-21
---

# Best chart library for a Next.js SaaS dashboard
Compare Recharts, shadcn charts, Tremor, Nivo, Chart.js, ECharts, and visx for a Next.js SaaS dashboard. SVG or canvas, App Router, and dark mode.
Docs and registries were read on 21 November 2026. The revenue chart in Data Lighthouse is a hand-built SVG.

| Library | Draws with | App Router | Dark mode | License | Best fit |
| --- | --- | --- | --- | --- | --- |
| Recharts | SVG | Client file | You pass colors | MIT | Compose a chart in React |
| shadcn/ui charts | SVG, via Recharts | Client file | CSS variables | MIT, copied in | App already uses shadcn/ui |
| Tremor | SVG, via Recharts | Client file | Tailwind on the kit | Apache-2.0 | Dashboard kit, mind the React peer |
| Nivo | SVG, HTML, or canvas | Client file if it measures | Theme guide | MIT | A finished specialized chart |
| Chart.js | Canvas | Client file | Colors in options | MIT | Canvas and an existing Chart.js setup |
| Apache ECharts | Canvas default, SVG optional | Client file | Theme object | Apache-2.0 | Large series or one option object |
| visx | SVG you compose | Client file if it measures | Classes on your SVG | MIT | A custom mark you compose |

## FAQ
### What is the best chart library for a Next.js dashboard?

For a dashboard that already uses shadcn/ui, use the shadcn chart component. It is Recharts in a client component, colored with your CSS variables. Data Lighthouse calls Recharts directly for the traffic area chart and draws revenue with its own SVG. The live demo is at https://datalighthouse.dev/demo. Pricing is at https://datalighthouse.dev/pricing.

### Should I use Recharts, Tremor, or shadcn charts?

Use shadcn charts when the app already uses shadcn/ui. Use Recharts alone when you will set stroke and fill yourself. The Tremor npm package 3.18.7 declares a React 18 peer and does not list React 19. This template depends on React 19.2.3, so that package is outside the range it declares. Copy-paste Tremor blocks import Recharts.

### Do chart libraries work in Next.js Server Components?

Put the chart in a file whose first line is the use client directive. Recharts, canvas charts, and any chart that measures its parent need the browser. A server page can load the series and pass a plain array into that client component.

### Does Data Lighthouse chart MRR, ARR, and churn?

MRR and ARR are numbers on cards. MRR is Stripe subscriptions with status active, normalized to one month. ARR is that MRR multiplied by 12. The chart plots daily succeeded charges and visitors. The overview does not compute churn. The demo at https://datalighthouse.dev/demo uses sample numbers.

### Which license do these chart libraries use?

Recharts, Nivo, Chart.js, react-chartjs-2, visx, and the shadcn/ui repository use the MIT license. Tremor and Apache ECharts use Apache-2.0. The React wrapper echarts-for-react uses MIT. Versions and licenses were read from GitHub and the npm registry on 21 November 2026.


## Sources
- [Recharts README (SVG, MIT)](https://github.com/recharts/recharts/blob/main/README.md)
- [shadcn/ui chart docs](https://ui.shadcn.com/docs/components/chart)
- [shadcn/ui repository (MIT)](https://github.com/shadcn-ui/ui)
- [Tremor homepage](https://www.tremor.so/)
- [Tremor Apache-2.0 license](https://github.com/tremorlabs/tremor/blob/main/LICENSE)
- [Nivo README](https://github.com/plouc/nivo/blob/master/README.md)
- [Chart.js accessibility](https://www.chartjs.org/docs/latest/general/accessibility.html)
- [Chart.js repository](https://github.com/chartjs/Chart.js)
- [react-chartjs-2 repository](https://github.com/reactchartjs/react-chartjs-2)
- [Apache ECharts canvas vs SVG](https://echarts.apache.org/handbook/en/best-practices/canvas-vs-svg/)
- [Apache ECharts aria](https://echarts.apache.org/handbook/en/best-practices/aria/)
- [visx README](https://github.com/airbnb/visx/blob/master/README.md)
