Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

95
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!