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

221
Visualizações
How to set highchart boxplot size

I am making a box plot in highchart, that can show between 1 and 6 objects. Unfortunately, high chart scales the size width the number of objects, so while my chart looks good when there are 6 objects it looks really bad when there are only 1 or 2 because the box plot ends up being too big and stretched horizontally. Is there a way to fix the size so that the boxes look the same regardless of the number of objects?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Use maxPointWidth or pointWidth option to control the box plot width.

Highcharts.chart('container', {
  series: [{
    type: 'boxplot',
    maxPointWidth: 50,
    data: [
      [760, 801, 848, 895, 965]
    ]
  }]
});

Demo:

https://jsfiddle.net/BlackLabel/w86xv14d/

API Reference:

https://api.highcharts.com/highcharts/series.boxplot.maxPointWidth https://api.highcharts.com/highcharts/series.boxplot.pointWidth

about 4 years ago · Juan Pablo Isaza 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