Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

364
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda