Line
@nivo/line
No description provided on npm.
Charts
nivo
dataviz
react
d3
charts
line-chart
@nivo/line
javascript
npm
frontend
Stars
14k
Weekly
860k
Open issues
50
Bundle
~25 kB
Installation
npm install @nivo/lineCode example
import { Line } from "@nivo/line";
const data = [
{ name: "Jan", value: 12 },
{ name: "Feb", value: 18 },
];
export function Example() {
return (
<Line data={data} width={420} height={240}>
{/* series / axes from Line */}
</Line>
);
}Pros & cons
Pros
- Actively maintained by Raphaël Benitte
- 860k weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~25 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 50 open issues on GitHub