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

223
Views
Estoy pasando datos en formato de horas y minutos, pero para la información sobre herramientas de mi gráfico de líneas, quiero mostrarlos en segundos

Así que estoy creando un gráfico de líneas donde he mostrado el eje x con el tiempo en formato 'HH: mm' pero en la información sobre herramientas quiero mostrar el tiempo en 'HH: mm: ss'. Si estoy tratando de personalizar mi información sobre herramientas, toma cada segundo como 0. ¿Hay alguna forma de personalizar la información sobre herramientas para que los segundos sean visibles correctamente?

 x-axis: ["11:05", "11:06", "11:06", "11:07", "11:07", "11:08", "11:08", "11:09"] If I convert it to seconds then the data will be ["11:05:30", "11:06:00", "11:06:30", "11:07:00", "11:07:30", "11:08:00", "11:08:30", "11:09:00"] but I need to display my x axis only in hours and minutes. callback function: tooltips: { callbacks: { title: (tooltipItems, data) => { let label = tooltipItems[0].label; label = momentInstance(labelText, 'hh:mm:ss').format(MMM DD - hh:mm:ss A'); return label; }, } It is displaying as "11:05:00", "11:06:00", "11:06:00", "11:07:00", "11:07:00", "11:08:00", "11:08:00", "11:09:00" for each data point.
about 4 years ago · Juan Pablo Isaza
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!