Bar
@nivo/bar
No description provided on npm.
Charts
nivo
dataviz
react
d3
charts
bar-chart
@nivo/bar
javascript
npm
frontend
Stars
14k
Weekly
851k
Open issues
50
Bundle
~25 kB
Installation
npm install @nivo/barCode example
import { Bar } from "@nivo/bar";
const data = [
{ name: "Jan", value: 12 },
{ name: "Feb", value: 18 },
];
export function Example() {
return (
<Bar data={data} width={420} height={240}>
{/* series / axes from Bar */}
</Bar>
);
}Pros & cons
Pros
- Actively maintained by Raphaël Benitte
- 851k 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