-
Notifications
You must be signed in to change notification settings - Fork 5
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
bar chart: monthly scale off by 1 into the future, and 11/23 is shown as 0/24 #492
Comments
Isnt this exactly the same you already posted? #475 |
Some hints:
I believe that the general problem is that everything starts from 0 instead of 1 and the calculation of the months is always with 30 days. |
no, I see a shift by 2 months here, not by one day. |
Yeah that works. Though the mouse over still shows the wrong value. I have a new issue, two months are counted as one (February 2024). |
Hier ein Codeschnipsel den ich mal mit ChatGPT ertellet habe. function daysInMonth(year, month) { function calculateMonths(start, end) {
} let start = new Date('2023-01-15').getTime(); // Beispiel-Startdatum Erklärung des Codes: daysInMonth(year, month) Funktion: Diese Funktion gibt die tatsächliche Anzahl der Tage im angegebenen Monat zurück. Diese Funktion berechnet die Anzahl der Monate zwischen start und end. let option = {}; console.log(option.count); |
Monthly timestamps at 23:59 are displayed one month into the future. E.g. 2023 Sept 30th 23:59 is shown as Oct 2023.
Nov 30 23:59 is actually even shown as 0/2024 (not 12/2023, or at least off by one as 12/2023).
Somehow the whole time axis of the bar chart is buggy. I'm willing to fix the code, can give someone a head-start where the issue might be hidden, in which lines?
The text was updated successfully, but these errors were encountered: