question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[3.0.0-alpha] Incorrect behavior when forcing time unit to month

See original GitHub issue

Expected Behavior

Using unit: 'month' for time axis should be ok whatever the data.

Current Behavior

If the intervals between data points are too short, using unit: 'month' leads to unusable chart.

Steps to Reproduce (for bugs)

Fiddle that reproduces the issue: https://jsfiddle.net/7ce1afx4/

If we remove unit: 'month', the issue is gone. If in generateDate we add “* 30” to generate monthly points instead of daily points, the issue is gone too.

Context

I encountered this issue after migrating to 3.0.0-alpha, I think this is a regression because I never saw this with 2.9.

Environment

  • Chart.js version: 3.0.0-alpha
  • Browser name and version: Chromium 80

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
emmcbdcommented, Mar 22, 2020

I want to thanks you and all the Chart.js maintainers for your great work, this alpha fixes many long standing bugs I had with 2.x and already seems pretty stable!

0reactions
benmccanncommented, Mar 21, 2020

I sent a fix here that makes your sample work: https://github.com/chartjs/Chart.js/pull/7211

Thanks for the bug report and trying out the alpha!

Read more comments on GitHub >

github_iconTop Results From Across the Web

issei-m-vue-ctk-date-time-picker - npm package - Snyk
A vue component for select date & time (by Chronotruck) For more information ... Latest version published 11 months ago ... 3.0.0-alpha.0.
Read more >
Invalid hook call. Hooks can only be called inside of the body ...
Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: #15315....
Read more >
Working with Dates and Times in R - RPubs
In this exercise you'll convert a character string representation of a date to a Date object. # The date R 3.0.0 was released...
Read more >
Bug listing with status RESOLVED with resolution FIXED as at ...
... Bug:393 - "portage handles 'emerge --world update' incorrectly; pkg_* functions do not work properly" status:RESOLVED resolution:FIXED severity:normal ...
Read more >
R News - The Comprehensive R Archive Network
Setting environment variable _R_CHECK_RD_VALIDATE_RD2HTML_ to a false value will override R CMD check --as-cran and turn off HTML validation. This provides a ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found