Wrong type of props for `pointSymbol` component in `@nivo/line`
Author: melkstamCreated Apr 30, 2025Updated Aug 27, 2026
Labels:beetle: bug:chart_with_upwards_trend: linetypescriptpinned
Describe/explain the bug
The type of the props sent to the pointSymbol component in @nivo/line is wrong.
The type defined is DotsItemSymbolComponent<Point<Series>> but that gives the wrong type of props.datum.
To Reproduce
See the following stackbliz. It throws an error even though the types are correct.
https://stackblitz.com/edit/nivo-line-incorrect-point-type?file=src%2FApp.tsx
Expected behavior
The type should be correct and match the provided props.
Screenshots
Not applicable
Additional context
The stackbliz is using version 0.92.1
Source: plouc/nivo