html head script type text javascript src https www google com jsapi s

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<html>
<head>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Genre', 'Пороговое здоровье', 'Допустимое здоровье', { role: 'annotation' } ],
['2010', 10, 24, ''],
]);
var options = {
width: 600,
height: 400,
legend: { position: 'top', maxLines: 1 },
bar: { groupWidth: '75%' },
isStacked: true,
};
var chart = new google.visualization.BarChart(document.getElementById('chart_div'));
chart.draw(data, options);
}
</script>
</head>
<body>
<div id="chart_div" style="width: 900px; height: 300px;"></div>
</body>
</html>