Curve
@visx/curve
visx curve
Charts
visx
react
d3
visualization
chart
@visx/curve
Charts
javascript
npm
frontend
Stars
626
Weekly
4.6M
Open issues
8
Bundle
~25 kB
Installation
npm install @visx/curveCode example
import { Curve } from "@visx/curve";
const data = [
{ name: "Jan", value: 12 },
{ name: "Feb", value: 18 },
];
export function Example() {
return (
<Curve data={data} width={420} height={240}>
{/* series / axes from Curve */}
</Curve>
);
}Pros & cons
Pros
- Actively maintained by @hshoff
- 4.6M 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
- 8 open issues on GitHub