Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

88
Vistas
Alter values of xAxis in chartjs

I'm trying to make a logarithmic chart, and here the full example of what I tried:

https://codesandbox.io/s/friendly-frog-qnqvii?file=/App.tsx:346-357

What I still need is to display the xAxis with a step of 2 like in this chart:

enter image description here

Please notice that the max value of the chart grid is '26' and not '24' and the min value is 10 instead of 12.

How can I acheive this ?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

This should work

...
  scales: {
    x: {
      type: "logarithmic",
      min: 12,
      max: 24
    },
...
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda