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

388
Views
Highcharts, fecha y hora, etiqueta xAxis. ¿Cómo mostrar todas las fechas en el eje x, no solo las fechas pares?

Soy nuevo con Highcharts y tengo una pregunta. Necesito mostrar todas las fechas en el eje x, pero de forma predeterminada, supongo que solo se muestran las fechas pares. ¿Cómo puedo mostrar todas las fechas? ingrese la descripción de la imagen aquí

Aquí mi código:

 const options: Options = { chart: { type: 'column', }, title: { text: '', }, xAxis: { crosshair: false, type: 'datetime', title: { text: 'Days', }, labels: { format: LABEL_FORMAT[period], rotation: 90, align: 'left', }, }, legend: { enabled: true, }, credits: { enabled: false, }, yAxis: { title: { text: 'Values', }, }, series: [ { name: 'test', type: 'column', data: [ [1651363200000, 10], [1651449600000, 15], [1651536000000, 5], ... ], }, { name: 'test 2', type: 'column', data: [ [1651363200000, 10], [1651449600000, 20], [1651536000000, 30], ... ], }, ], }, };

Este gráfico no solo se usa para mostrar el día, sino también los meses y los años. Por favor responde mi pregunta

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

0

Utilice la opción xAxis.tickInterval . En este caso:

 xAxis: { tickInterval: 24 * 3600 * 1000, type: 'datetime', labels: { format: '{value:%Y-%m-%d}', rotation: 90, align: 'left' }, }

Demostración: https://jsfiddle.net/BlackLabel/t0Lohusx/

Referencia de la API: https://api.highcharts.com/highcharts/xAxis.tickInterval

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!