Test Chart Google


<script type=”text/javascript” src=”https://www.google.com/jsapi”></script&gt;
<script type=”text/javascript”>
google.load(“visualization”, “1”, {packages:[“corechart”]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
[‘Year’, ‘Sales’, ‘Expenses’],
[‘2004’, 1000, 400],
[‘2005’, 1170, 460],
[‘2006’, 660, 1120],
[‘2007’, 1030, 540]
]);

var options = {
title: ‘Company Performance’,
hAxis: {title: ‘Year’, titleTextStyle: {color: ‘red’}}
};

var chart = new google.visualization.AreaChart(document.getElementById(‘chart_div’));
chart.draw(data, options);
}
</script>

Test Chart Google

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s