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

145
Visualizações
Update highcharts options via setoptions after the charts have been rendered

We are making use of Highcharts for our data visualization application which has about 20 or charts. The charts are showing cost information and we are adding the ability for users to change currency. Now because we can change currency we would like to change our prefix to on yaxis. More specifically we change our label formatter option using

HighCharts.setOptions({
yAxis: {
      labels: {
        formatter: function () {
          return `${currency} ${formatCostNumberStr(this.value)}`;
        }
      }
    }
})

currency is passed into the function which gets called everytime currency changes.

The issue is that these new options will not take place until the charts rerender - which is fine as long as the data is different but if the data remains the same (i.e. values remain same) the charts yaxis will not change. Is there a way to rerender all the charts at the same time?

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