Bump graph crashes with missing data sets.
See original GitHub issueI have been using Nivo bump on a project and I seem to have bumped into an issue. I’ve been following the sample on the website for Bump and the api crashes when I reduce the number of data sets, i.e the ‘serie’ of data, in default there are 12, but i reduced the samples to 8 and the api instantly crashed.
The graph renders with un-connected lines, and recursively throws 1000’s of errors.
Failed prop type: The prop points[12].y is marked as required in Points, but its value is undefined
.
and this error too
react-dom.development.js:3147 Error: <path> attribute d: Expected number, "M0,NaNL61.650000000…".
this one as well
Received NaN for the
yattribute. If this is expected, cast the value to a string.
Question
- Why is this happening?
- Is there a minimum required data length ( serie )?
** Note ** There isn’'t any difference in the code, but the dataset is passed as a state, so the sample code should work fine maybe to test.
Has anyone else had this issue? or is it just me?
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (1 by maintainers)
Top GitHub Comments
This issue occurs when there are fewer than 12 objects in the data array. If there are fewer than 12 objects in the array then the bump chart does not display properly and gives 10000+ error messages in the console. However, if you have 12 or more objects in the data array then it works.
The problem doesn’t seem to be related to the data length, this chart doesn’t support unconnected lines (hence the warning about missing
y
value).