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