<!Doctype html>
<html>
<head>
<title>Google Charts Tutorial</title>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
google.charts.load('current', {
packages: ['corechart']
});
</script>
</head>
<body>
<div id="container" style="width: 550px; height: 400px; margin: 0 auto"></div>
<script language="JavaScript">
function drawChart() {
/* Define the chart to be drawn.*/
var data = google.visualization.arrayToDataTable([
['Page Vist', 'Students Tutorial'],
['2012', 10000],
['2013', 23000],
['2014', 46000],
['2015', 49000],
['2016', 55000],
['2017', 100000]
]);
var options = {
title: 'Page visit per year',
isStacked: true
};
/* Instantiate and draw the chart.*/
var chart = new google.visualization.BarChart(document.getElementById('container'));
chart.draw(data, options);
}
google.charts.setOnLoadCallback(drawChart);
</script>
</body>
</html>