<!DOCTYPE html>
<html lang="en-US">
<head>
<script src="https://www.gstatic.com/charts/loader.js"></script>
</head>
<body>
<div id="point">
</div>
<script>
google.charts.load('current', {'packages':['corechart']});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Year', 'Cars', 'Buses', 'Trucks'],
['2013', 1000, 600, 352],
['2014', 1170, 460, 400],
['2015', 660, 1120, 1000],
['2016', 1030, 540, 700]
]);
var options = {
title: 'Volvo Sales',
orientation: 'vertical',
height: 400,
width: 600,
hAxis: {
title: 'counts',
titleTextStyle: {
color: '#333'
}
},
vAxis: {
title: 'years',
minValue: 0
}
};
var chart = new google.visualization.AreaChart(document.getElementById('point'));
chart.draw(data, options);
}
</script> </body>
</html>