-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Describe/explain the bug
For sliceTooltip and tooltip in responsive line charts, the property for the series ID in a point is point.seriesId
:
nivo/packages/line/src/types.ts
Line 65 in a2d9dab
export interface Point<Series extends LineSeries> { |
However, within the actual object returned in the callback for sliceTooltip and tooltip, the point's property for the series ID is point.serieId
{ "slice": { "id": 337.0067901611328, "x0": 294.8809413909912, "x": 337.0067901611328, "y0": 0, "y": 0, "width": 42.1258487701416, "height": 233.18968200683594, "points": [ { "id": "Canceled.4", "index": 19, "serieId": "Canceled", "serieColor": "#d62728", "x": 337.0067901611328, "y": 233, "color": "#d62728", "borderColor": "transparent", "data": { "x": "Aug 17", "y": 0, "xFormatted": "Aug 17", "yFormatted": "0" } }, { "id": "Logged.4", "index": 14, "serieId": "Logged", "serieColor": "#2ca02c", "x": 337.0067901611328, "y": 233, "color": "#2ca02c", "borderColor": "transparent", "data": { "x": "Aug 17", "y": 0, "xFormatted": "Aug 17", "yFormatted": "0" } }, { "id": "Scheduled.4", "index": 9, "serieId": "Scheduled", "serieColor": "#ff7f0e", "x": 337.0067901611328, "y": 233, "color": "#ff7f0e", "borderColor": "transparent", "data": { "x": "Aug 17", "y": 0, "xFormatted": "Aug 17", "yFormatted": "0" } }, { "id": "Requested.4", "index": 4, "serieId": "Requested", "serieColor": "#1f77b4", "x": 337.0067901611328, "y": 233, "color": "#1f77b4", "borderColor": "transparent", "data": { "x": "Aug 17", "y": 0, "xFormatted": "Aug 17", "yFormatted": "0" } } ] }, "axis": "x" }
Expected behavior
The returned seriesId
property naming should align with the type.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context
Add any other context about the problem here.