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

279
Visualizações
How to change chart font-size in Britecharts React?

I am unable to change the font-size of the x and y-axis using Britecharts - React. (see https://britecharts.github.io/britecharts-react/#bar). From the docs it seems that the method is "labelsSize" but this is not currently working. A forked codepen showing the issue is here: https://codepen.io/mvolny/pen/XWZrmXR. Thanks.

const {Bar} = window['britecharts-react'];
const barData = [
  {
      name: 'Radiating',
      value: 2,
  },
  {
      name: 'Opalescent',
      value: 4,
  },
  {
      name: 'Shining',
      value: 3,
  },
  {
      name: 'Vibrant',
      value: 6,
  },
  {
      name: 'Vivid',
      value: 6,
  },
  {
      name: 'Brilliant',
      value: 1,
  },
];
const marginObject = {
  left: 100,
  right: 40,
  top: 40,
  bottom: 40,
};

ReactDOM.render(
<Bar
  data={barData}
  width={400}
  isHorizontal={true}
  margin={marginObject}
  labelsSize={50}
/>, 
document.getElementById('app')
);

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

0

Found this out asking around in the Brightcharts-React github page. Basically, you need to target the elements of the chart via css. See example for changing the font-size:

.tick text {
  font-size: 16px !important;
}

similarly,

.vertical-grid-line {
display: none !important;
}
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