apexcharts / apexcharts.js

📊 Interactive JavaScript Charts built on SVG
https://apexcharts.com
MIT License
14.34k stars 1.3k forks source link

Datetime xaxis is one hour off #95

Closed arkhenstone closed 6 years ago

arkhenstone commented 6 years ago

deepin-screen-recorder_select area_20180913134958

As you can see, the first tick is off one hour in space. Zooming in would show that a tick hold the date of the day. On the gif, the 01:00 tick is the date, and the 02:00 is 01:00 (then the off hour is on all next ticks).

I use this formatter on xaxis :

labels: {
            datetimeFormatter: {
              year: 'yyyy',
              month: 'MM / yy',
              day: 'dd/MM/yy',
              hour: 'HH:mm'
            }
          }

That shootage is done in 1.4.6 and may be corrected since then.

junedchhipa commented 6 years ago

No, it's not corrected in v1.5 I will take a look into it

louis123562 commented 3 years ago

If anyone is still facing this issue, check https://github.com/apexcharts/apexcharts.js/issues/110#issuecomment-633227332