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

Display bug with moment.js #4529

Closed
gatemed opened this issue Jul 19, 2017 · 3 comments · Fixed by #4556
Closed

Display bug with moment.js #4529

gatemed opened this issue Jul 19, 2017 · 3 comments · Fixed by #4556

Comments

@gatemed
Copy link

gatemed commented Jul 19, 2017

Hello,
I have a little display bug which is happening sometimes (not every time), maybe depending on how much data the graph have to display (not sure about that).

Expected Behavior

When it works normally :
image

Current Behavior

When it doesn't :

image
As you can see, last points aren't displayed at the end.

Someone can tell me how to fix this ? Is there any specific option ?

Config options

I'm using moment this way :
xAxes: [{
type: "time",
time: {
format: 'MM/DD/YYYY HH:mm',
tooltipFormat: 'll HH:mm'
},
scaleLabel: {
display: true,
labelString: 'Date'
}

Environment

  • Chart.js version: 2.6
  • Browser name and version: Firefox 54
@etimberg
Copy link
Member

I think this bug has already been reported with other scales in the past but I don't know the exact issue off the top of my header.

You could try adding autoSkip: true inside the tick options and see if that improves anything

@gatemed
Copy link
Author

gatemed commented Jul 19, 2017

Hello, thanks for you anwer,

I did read some topics about it, but it dosen't seem to work with the autoSkip,

Tried it on the combo.html in samples/scales/time with:
xAxes: [{
ticks: {
autoSkip: true
},
This doesn't work,

Thanks

@simonbrunel
Copy link
Member

I think it's duplicated by #4550, which duplicates #4264

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