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

148
Views
Why does Google Chart increase my page width?

I create a Google charts, in php page

<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
    google.charts.load("current", {packages:['corechart']});</script>

<script type="text/javascript"> 
    google.charts.setOnLoadCallback(drawChart);
    function drawChart() {
      var data = google.visualization.arrayToDataTable([
        ["M", "COUNT",{ role: 'style' }],
        
      var view = new google.visualization.DataView(data);
      var options = {
        width: 200,
        height: 400,
        bar: {groupWidth: "95%"},
        legend: { position: "none" },
      };
      var chart1 = new google.visualization.ColumnChart(document.getElementById("columnchart_values1"));
      chart1.draw(view, options);
      document.getElementById("columnchart_values1").style.display = "block";
  }

  </script>

<div style="width:80%;"class="columnchart_values"  id="columnchart_values1"> </div>

The graph is fine, but the page width varies - very large. Why?

enter image description here

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!