Shape
@visx/shape
visx shape
Charts
visx
react
d3
visualizations
charts
@visx/shape
javascript
npm
frontend
open source
Stars
1
Weekly
0
Open issues
0
Bundle
~60 kB
Installation
npm install @visx/shapeCode example
import { Shape } from "@visx/shape";
const data = [
{ name: "Jan", value: 12 },
{ name: "Feb", value: 18 },
];
export function Example() {
return (
<Shape data={data} width={420} height={240}>
{/* series / axes from Shape */}
</Shape>
);
}Pros & cons
Pros
- Actively maintained by @hshoff
- 0 weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~60 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 0 open issues on GitHub