apexcharts / apexcharts.js

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

Datetime xaxis will show 00:00 twice causing x label 1 hour off #4027

Open YanVictor1027 opened 1 year ago

YanVictor1027 commented 1 year ago

Description

I am plotting roughly 30000-50000 points with 5-10 seconds between each point, when the first point is between 23:00 and 00:00, I found that the x axis will have a duplicate 00:00 label which cause the whole x label to be 1 hour off. You can see from the following picture, there is an extra date between 00:00 and 1:00

I am using "apexcharts": "^3.42.0" and "react-apexcharts": "^1.4.1"

Steps to Reproduce

  1. https://codepen.io/Victor-Yan-the-styleful/pen/WNLdmEr
  2. I am plotting 10000 points in the example, it show the problem

Expected Behavior

x axis label should match the tooltip, there should be an extra label between 00:00 and 01:00

Actual Behavior

x axis has one extra label causing the datetime 1 hour off

Screenshots

Screenshot 2023-09-21 at 2 52 43 PM

Reproduction Link

(https://codepen.io/Victor-Yan-the-styleful/pen/WNLdmEr)

frankykubo commented 12 months ago

Did you find a solution or this? Having the same problem.

YanVictor1027 commented 11 months ago

Unfortunately no, I tried to use my own parser but the label won't be on the hour.