[3.0.0-alpha] Incorrect behavior when forcing time unit to month
See original GitHub issueExpected 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:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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!
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!