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

Error on empty data set #537

Closed
mohlek opened this issue Dec 9, 2015 · 7 comments
Closed

Error on empty data set #537

mohlek opened this issue Dec 9, 2015 · 7 comments
Labels

Comments

@mohlek
Copy link

mohlek commented Dec 9, 2015

I get an error when I pass an empty data set.

Is it somehow possible to get an empty chart? I'd like to fill my data after page load due to lazy loading.

https://jsbin.com/wayohenane/edit?html,js,console,output

@mohlek
Copy link
Author

mohlek commented Dec 9, 2015

It worked in version 0.7.4.
Well at least it doesn't throw an error so i can update the chart and get my data.

@buschtoens
Copy link

The error stems from core.js Chartist.getBounds.

@gionkunz
Copy link
Collaborator

Hi. Can you please post some sample code to reproduce?

@mohlek
Copy link
Author

mohlek commented Dec 10, 2015

Its in my first post...

@gionkunz gionkunz added the bug label Dec 12, 2015
@mohlek
Copy link
Author

mohlek commented Dec 17, 2015

Are there any plans on fixing this?
I would help to fix but i dont know whats the hassle with this

@ashishUthama
Copy link

@gionkunz - In a line chart, when using Chartist.AutoScaleAxis for x-axis, setting data to [] for any series in a line chart results in:

1

@mohlek
Copy link
Author

mohlek commented Dec 23, 2015

PR #555

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants