Annotations
@nivo/annotations
No description provided on npm.
Charts
nivo
dataviz
react
charts
annotations
@nivo/annotations
javascript
npm
frontend
open source
Stars
345
Weekly
1.1M
Open issues
4
Bundle
~25 kB
Installation
npm install @nivo/annotationsCode example
import { Annotations } from "@nivo/annotations";
const data = [
{ name: "Jan", value: 12 },
{ name: "Feb", value: 18 },
];
export function Example() {
return (
<Annotations data={data} width={420} height={240}>
{/* series / axes from Annotations */}
</Annotations>
);
}Pros & cons
Pros
- Actively maintained by Raphaël Benitte
- 1.1M 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