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

89
Vistas
How do i change the bar colors based on the values of the bar and add annotations to it GoogleCharts

The code below is my current code for the barchart, i want to make the bar change color based on the value of the bar (eg) <50 =red, 50-70 =yellow, >70= green. And also add a annotation for the value beside the bar. I have tried using displayAnnotations:True, but it didn't work for me. I am still new to coding so any help will be appreciated. Thanks! The columns for score is 2.

var ScorePerSubject= new google.visualization.ChartWrapper({
            'chartType': 'BarChart',
            'containerId': 'ScoreChart',
            'options': {
                'width': 570,
                'height': 100,
                'legend': 'right',
                'cssClassNames': cssClassNames,
                hAxis: {
            viewWindowMode:'explicit',
            viewWindow: {
              max:100,
              min:0
            }
            
        },
          },
          'dataTable': ScoreofSubjects,
          'view':
          {

            columns: [1,2]
            
          }
          
        });
        ScorePerSubject.draw();
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