Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

202
Views
How to get the current time on the real-time Apexcharts

realTime Apexcharts

I am making a real-time chart with the source code in the link above. However, in the above chart, the value of the x-axis is not initialized to the current time.

Please tell me how to initialize the x-axis value to the current time.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Change this fragment

getDayWiseTimeSeries(new Date('11 Feb 2017 GMT').getTime(), 10, {
  min: 10,
  max: 90
})

to this

let initNumber = 10
getDayWiseTimeSeries(new Date().getTime()-(initNumber - 1)*TICKINTERVAL, initNumber, {
  min: 10,
  max: 90
})

Sarting x-axis will be from 13 to 22 (today)

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!