question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bump graph crashes with missing data sets.

See original GitHub issue

I 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

  1. Why is this happening?
  2. 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:closed
  • Created 4 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
ytamircommented, Nov 26, 2019

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.

4reactions
plouccommented, Jun 23, 2019

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).

Read more comments on GitHub >

github_iconTop Results From Across the Web

How Data Imputation Affects Crash Modeling Results
Using data from North Carolina, we examine changes in inferences associated with missing data by comparing models with full data sets with ...
Read more >
USA Accidents Data Analysis. The data of countrywide traffic…
This is a countrywide traffic accident dataset, which covers 49 states of the United States. The data is continuously being collected from ...
Read more >
How to deal with missing data in line charts
Sometimes, missing values in a line chart will create a gap in the line. In this tutorial, you'll learn how to draw an...
Read more >
Understanding Car Crashes — It's Basic Physics!
How do magicians pull a tablecloth out from under an entire set of dishes? Is it magic or science? • How is a...
Read more >
Normal map (Bump mapping) - Unity - Manual
Using this basic smooth shading, the data determining the normal direction is actually only stored per vertex, so the changing values across the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found