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

Make it possible to render empty chart and chart without explicit labels #598

Closed
gionkunz opened this issue Jan 24, 2016 · 6 comments
Closed
Milestone

Comments

@gionkunz
Copy link
Collaborator

It should be possible to avoid labels within the chart creation and also render charts without any data. Charts without labels will get labels should auto generate labels from the series counts. Charts without data should render an empty chart background with grid lines respecting low, high settings and any present labels.

This will help users in case of dynamic applications where there might be no data initial, but the chart will be updated with data later on.
#555 is required for providing this functionality.

@Quas94
Copy link

Quas94 commented Jan 27, 2016

Has this been implemented yet? When I try to create a chart with

var chart = new Chartist.Line('.ct-chart', {
    labels: [1, 2, 3, 4],
    series: [[]]
});

I get the following error:

Uncaught Error: Exceeded maximum number of iterations while optimizing scale step!

@gionkunz
Copy link
Collaborator Author

Yes its there. However not released yet. Im planning the 0.9.6 release this weekend. You can build the dev branch lcally if you like to use the current state already.

@RomanShabanov
Copy link

Hey, by any chance you are close enough to release 0.9.6?

@gionkunz
Copy link
Collaborator Author

no unfortunately due to other priorities not. If we won't be able to finish the other issues in the 0.9.6 milestone within the next week or two, Ill postpone all unfinished features to 0.9.7 and ship 0.9.6.

@Quas94
Copy link

Quas94 commented Feb 21, 2016

Any news on 0.9.6?

@gionkunz
Copy link
Collaborator Author

0.9.6 was just published

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

No branches or pull requests

3 participants