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

Chart.js x-axis labels display issue #72

Closed
charlie965 opened this issue Nov 21, 2018 · 5 comments
Closed

Chart.js x-axis labels display issue #72

charlie965 opened this issue Nov 21, 2018 · 5 comments

Comments

@charlie965
Copy link

On a time-based chart.js line chart or area chart with multiple dates, only one date label shows in the far left corner of the x-axis on load. Sometimes, it even shows no labels at all. If I use hot reload during development, changes to the chart's attributes will sometime force it to reload to show the correct labels, but I'm stuck with the first one in production.

I've tried feeding specific configs into the 'library' attribute, but haven't found anything that fixes this.
Is there a way for me to access the chart by ID and force a chart.update() manually if this can't be done through configuration?

@ankane
Copy link
Owner

ankane commented Nov 29, 2018

Hey @charlie965, can you put together a minimal example to demonstrate the issue?

@charlie965
Copy link
Author

Sorry for the late response. I was out of town but I'll try to get something together this week.

@charlie965
Copy link
Author

https://jsfiddle.net/zdet1has/
After creating this example, I realized this must have something to do with webpack and Quasar framework. Not sure where to go from here.

@ankane
Copy link
Owner

ankane commented Dec 11, 2018

The labels are good in the JSFiddle, yeah? I haven't used Quasar, so not sure what it could be.

@ankane
Copy link
Owner

ankane commented May 26, 2019

Cleaning up stale issues

@ankane ankane closed this as completed May 26, 2019
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

2 participants