Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

183
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda