ioBroker/ioBroker.echarts

bar chart: monthly scale off by 1 into the future, and 11/23 is shown as 0/24

gitisgreat2023 opened this issue · 8 comments

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?

Isnt this exactly the same you already posted? #475

Some hints:

  • I assume that the month starts with 0 instead of 1. This is probably the shift of one month.
  • It looks like that the calculation is based on 30 days per month. But months have days between 28 and 31.
  • This concerns not only months, also days that are shifted by 1 into the future (Probably also hours).

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.

Isnt this exactly the same you already posted? #475

no, I see a shift by 2 months here, not by one day.
November is for example displayed as 0/2024 (january)

The same problem here.
image
image

Sorry, I missed something there. Under Appearance there is a parameter X-Label-offset. This is the desired solution for me.
image

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).