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