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

Huge gap between last two labels when using maxTicksLimit #4358

Closed
frankie-loves-jesus opened this issue Jun 9, 2017 · 18 comments
Closed

Huge gap between last two labels when using maxTicksLimit #4358

frankie-loves-jesus opened this issue Jun 9, 2017 · 18 comments

Comments

@frankie-loves-jesus
Copy link

My chart has so much data the labels won't all fit:

sf2hz

I found https://stackoverflow.com/questions/22064577/limit-labels-number-on-chartjs-line-chart which suggests adding:

autoSkip: true,
maxTicksLimit: 10

However, despite how high or low I set this limit, there's always a large gap towards the right end of the x-axis. Does anybody know why?

https://jsfiddle.net/askhflajsf/xzk6sh1q/

@etimberg
Copy link
Member

etimberg commented Jun 9, 2017

@frankie-loves-jesus the issue here is that something is going wrong in the time scale. There should be a label in that large gap.

Closing as a duplicate since this has already been reported.

@etimberg etimberg closed this as completed Jun 9, 2017
@frankie-loves-jesus
Copy link
Author

Hey @etimberg and thanks for your reply. Sorry but what issue is this a duplicate of?

@etimberg
Copy link
Member

etimberg commented Jun 9, 2017

I don't know the exact number off the top of my head, but it should be tagged with the time scale label

@frankie-loves-jesus
Copy link
Author

@etimberg thanks - I think I found them: #2249 and #2774 if I'm not mistaken.

@frankie-loves-jesus
Copy link
Author

@etimberg I realize it's is a very complicated issue, but are there any solutions in sight? Or perhaps temp fixes? Thanks again.

@etimberg
Copy link
Member

@frankie-loves-jesus some of the work on the time-series axis in #4268 and #4364 will hopefully be the solution to this problem

@frankie-loves-jesus
Copy link
Author

@etimberg great news, I can't wait!

@frankie-loves-jesus
Copy link
Author

@etimberg, #4268 is done right? So we just need to merge #4364 and the problem will most likely be gone?

@etimberg
Copy link
Member

etimberg commented Jul 5, 2017

@frankie-loves-jesus yes I think that is all that is left. All that's required on the client is switching from the 'time' to 'timerseries' axis

@frankie-loves-jesus
Copy link
Author

@etimberg is there like a nightly build of Chart.js' master branch somewhere?

@simonbrunel
Copy link
Member

http://chartjs.org/dist/master/Chart.min.js

@frankie-loves-jesus
Copy link
Author

frankie-loves-jesus commented Aug 17, 2017

Thanks! Would be nice if it ran on HTTPS as well so I could use it with JSFiddle.

@simonbrunel
Copy link
Member

Agree, but I'm not sure if we can enable SSL for chartjs.org. @nnnick?

Seems that JSFiddle now forces a redirection to HTTPS, wasn't the case a few weeks ago :\

@simonbrunel
Copy link
Member

@frankie-loves-jesus chartjs.org resources are stored on our chartjs.github.io repository, so you can use a service like https://rawgit.com/ to serve the development builds through HTTPS: https://rawgit.com/chartjs/chartjs.github.io/master/dist/master/Chart.bundle.min.js

@frankie-loves-jesus
Copy link
Author

Wonderful - thanks :)

@ybarbaria
Copy link

Any news about this bug? I have the same problem with the v7.0

@manuelphdev
Copy link

+1

@payalord
Copy link

@etimberg looks like this is still not fixed in v2.7.2

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

6 participants