On: http://tablero-mexico.com I want to increase the size of the gauges.  
When I try they go off center.  Also, the W3 schools validator returns the 
warning and error below despite my having copied directly from google 
gauges.
Thanks to anyone who can help me with this!  Kind regards

*Warning*: The type attribute is unnecessary for JavaScript resources.
>From line 624, column 4; to line 624, column 34
cript>↩ *<script type="text/javascript">*↩Warning: The type attribute is 
unnecessary for JavaScript resources.
>From line 624, column 4; to line 624, column 34
cript>↩   <script type="text/javascript">↩     

*Error*: td start tag in table body.
>From line 675, column 29; to line 676, column 12
"columns">↩        <td><div i


 * Here is an example of my code:*
<div>
 <script type="text/javascript" 
src="https://www.gstatic.com/charts/loader.js";></script>
   <script type="text/javascript">
      google.charts.load('current', {'packages':['gauge']});
      google.charts.setOnLoadCallback(drawChart);

      function drawChart() {

 var data = google.visualization.arrayToDataTable([
                ['Label', 'Value'],
         ['México', -9.0],
          ['EUA', -4.3],
  ['Chile', -6.1],
          ['España', -12.8]
        ]);

        var options = {
min: -15,
max: 15,
           width: 400, height: 120,
          redFrom: -15, redTo: -1,
          greenFrom:1, greenTo: 15,
          minorTicks: 5
        };

        var chart = new 
google.visualization.Gauge(document.getElementById('chart_div'));

        chart.draw(data, options);

      setInterval(function() {
          data.setValue(-15, 0, 15 + Math.round(0 * Math.random()));
          chart.draw(data, options);
        }, 0);
     setInterval(function() {
          data.setValue(-15, 0, 15 + Math.round(0 * Math.random()));
          chart.draw(data, options);
        }, 0);
setInterval(function() {
          data.setValue(-15, 0, 15 + Math.round(0 * Math.random()));
          chart.draw(data, options);
        }, 0);
       setInterval(function() {
          data.setValue(-15, 0, 15 + Math.round(0 * Math.random()));
          chart.draw(data, options);
        }, 0);
      }
    </script>
</div>


-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/b7c26da0-2192-4319-973b-79a9d0456a6bn%40googlegroups.com.

Reply via email to