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

168
Views
Google barchart don't display single horizontal bar when value is in the millions

Barchart doesn’t show a single bar item when the value is in the millions. Can see this code snippet below in jsFiddle here https://jsfiddle.net/mharri117/zwycshvm/187/

HTML code

<script src="https://www.gstatic.com/charts/loader.js"></script>
<div id="barChart"/>

Javascript code

 google.charts.load('current', {packages: ['corechart']});
  google.charts.setOnLoadCallback(drawChart);
  
  function drawChart() {
       var data = new google.visualization.DataTable();
        data.addColumn('string');
        data.addColumn('number');
        data.addColumn({ 'type': 'string', 'role': 'style' });
        data.addRows([
          ['name1',3442222,'color: #fcba03'],// This will not show the bar
          //['name2',34422,'color: #fcba03'],// uncomment this line and comment out line 11 and 
           everything works fine
        ]);

      // Instantiate and draw the chart.
      var chart = new google.visualization.BarChart(document.getElementById('barChart'));
      chart.draw(data, null);
    }
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!