Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Bubble charts do not allow nulls in data values #4656

Closed
kesmit13 opened this issue Aug 14, 2017 · 0 comments · Fixed by #4671
Closed

[BUG] Bubble charts do not allow nulls in data values #4656

kesmit13 opened this issue Aug 14, 2017 · 0 comments · Fixed by #4671

Comments

@kesmit13
Copy link

Expected Behavior

Line and scatter charts allow you to put a null into the data point as a missing value. Bubble charts should presumably do the same.

Current Behavior

If you put a null into the data list for a bubble chart, the code will blow up in getRadius while trying to access the 'r' field of that data point.

Possible Solution

Simply check value for null before accessing the 'r' field.

Context

I have several data sets that I have to keep in sync. I do this by adding nulls in as missing values to keep the lengths of all of the data lists the same. When I have bubble chart data, this fails since I can't put nulls into the list.

Environment

  • Chart.js version: 2.6
  • Browser name and version: Safari 10.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants