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

94
Visualizações
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 à 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