PI

Pie

@nivo/pie

No description provided on npm.

Charts
nivo
dataviz
react
d3
charts
pie-chart
@nivo/pie
javascript
npm
frontend
Stars
14k
Weekly
604k
Open issues
50
Bundle
~25 kB

Installation

npm install @nivo/pie

Code example

import { Pie } from "@nivo/pie";

const data = [
  { name: "Jan", value: 12 },
  { name: "Feb", value: 18 },
];

export function Example() {
  return (
    <Pie data={data} width={420} height={240}>
      {/* series / axes from Pie */}
    </Pie>
  );
}

Pros & cons

Pros

  • Actively maintained by Raphaël Benitte
  • 604k 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

FAQs

Alternatives & similar libraries