Hmmm, doesn't seem to make a difference. My chart div code is <div
style="border:1px solid #666" id="chart_div"></div>
and my chart script is:
<script type="text/javascript">
// Load the Visualization API and the piechart package.
google.load('visualization', '1.0', {'packages':['corechart']});
// Set a callback to run when the Google Visualization API is
loaded.
google.setOnLoadCallback(drawChart);
// Callback that creates and populates a data table,
// instantiates the pie chart, passes in the data and
// draws it.
function drawChart() {
// Create the data table.
var data = new google.visualization.DataTable();
data.addColumn('string', 'Category');
data.addColumn('number', 'Score');
data.addRows([
['A1', 1.335],
['A2', 8.75],
['A3', 4],
['A4', 7.5],
['A5', 6.844],
['A6', 6],
['A7', 0.268],
['A8', 6.593],
['A9', 5.268],
['A10', 2.263],
['A11', 6],
['A12', 0],
['A13', 10]
]);
// Set chart options
var options = {'title':'Results',
width:550,
hAxis: {minValue: 0, maxValue: 10},
hAxis: {viewWindow:{max:10,min:0},viewWindowMode:'explicit'},
chartArea: {top:50,left:130,width:400},
titleTextStyle:{color: "black", fontName: "Arial", fontSize: "20"},
height:400};
// Instantiate and draw our chart, passing in some options.
var chart = new
google.visualization.BarChart(document.getElementById('chart_div'));
chart.draw(data, options);
}
</script>