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

124
Views
Flot Charts con xasis Time

Estoy probando un diagrama de flotador con datos.
[[1645570986, 0.4624863055203449], [1645570987, 0.4624863055203449], [1645570988, 0.468952235505014],…]
por lo tanto [timespamp, value], sin embargo, el tiempo no aparece en el eje x. Cualquiera puede darme un consejo.

 function CF_real_CPU(){ 'use strict'; var cpu = $.plot('#flotRealtime1', [real[0].data], { colors: ['#ff5e5e'], series: { lines: { show: true, lineWidth: 1 }, shadowSize: 0 // Drawing is faster without shadows }, grid: { borderColor: 'transparent', borderWidth: 1, labelMargin: 5 }, xaxis: { mode: "time", tickSize: [10, "second"], tickLength: 10, axisLabelUseCanvas: true, axisLabelPadding: 10, color: "transparent", font: { size: 10, color: "#fff" } }, yaxis: { color: 'transparent', font: { size: 10, color: '#fff' } } });

}

gráficos de imágenes

Gracias
alby696

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

0

Su marca de tiempo está en segundos. Cuando se usa Flot (y JavaScript en general), deben estar en milisegundos. 1645570987 debe ser 1645570987000 y así sucesivamente.

Con las marcas de tiempo tal como están ahora, todos sus datos abarcan menos de un segundo, por lo que el tiempo en el eje está fuera del área visible.

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!