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

184
Vistas
Rotate label to right with 45 degree

I have this options at the chart:

options:{
    scales: {
        xAxis:{
            ticks: { maxRotation: 45, minRotation: 45 },
        }
    }
}

But is not really what I want. And I wanted with -45 and this is worst:

tried

What I really want is this:

want

It is possible to configure it like this?

about 4 years ago · Santiago Gelvez
1 Respuestas
Responde la pregunta

0

I'm not sure will it work for your scenario, but you can try this.

options:{
    scales: {
        xAxis:{
            ticks: {
                offset: true,
                padding: 20,
                labelOffset: 25,
                align: 'start',
                maxRotation: 315,
                minRotation: 315,
            },
        }
    }
}

You can increase or decrease labelOffset and padding properties according your need.

Note - Note: this can cause labels at the edges to be cropped by the edge of the canvas. For solving this issue, you can increase size of canvas tag and providing some padding inside canvas.

For Example -

options: {
    layout: {
        padding: 25, // in pixels
  }
}

If I'm not wrong, providing canvas padding equal to tick labelOffset would solve this cropping issue.

about 4 years ago · Santiago Gelvez 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