Skip to content

Instantly share code, notes, and snippets.

Avatar

Sivaprabu Ganesan gsivaprabu

View GitHub Profile
View essential-javascript-links.md
@gsivaprabu
gsivaprabu / googleLineChart.php
Last active Feb 26, 2016
Line Chart using google chart API in PHP
View googleLineChart.php
<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([
['Year', 'AIDMK', 'DMK','INC','CPI','CPI-M','PMK','MDMK','DMDK'],
['1977', 130, 48, 27, 5 , 12, 0 , 0, 0 ],
['1980', 129, 37, 31, 9 , 11, 0, 0, 0 ],
You can’t perform that action at this time.