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

367
Visualizações
Google NumberFormat With Pattern "Too many percent/permill"

I am trying to use Google chart's table chart and need to format some of the columns to decimal. When I try to use the google.visualization.NumberFormat to set the pattern to #,##0.0%;(#,##0.0%) I get an the Uncaught Error: Too many percent/permill error message.

I am on version 43 at the moment, and am unfortunately tied to using that version.

Here is a snippet of my formatter

new google.visualization.NumberFormat({
     negativeColor: 'black',
     pattern: "#,##0.0%;(#,##0.0%)"
})

I save all of the column formatters in an array and then apply them to the table at the end. This is the line of code that is throwing the exception:

columnFormatters.forEach(element => element.ColFormatter.format(dataTable, element.Ind));

I can use some of the other options to add the percent suffix, but I am also trying to let the table do the formatting of the data into a percent. I'd prefer not to have to do that on my end. Has anyone had this issue before?

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