how can i save the chart as an image on server. I am using the following code.
<head runat="server">
<title></title>
<script type="text/javascript">
google.load("visualization", "1", { packages: ["corechart"] });
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Month', 'Bad', 'Good', 'Very Good', 'Excellent'],
['Jan', 10, 40, 30, 20],
['Feb', 08, 30, 30, 32],
['Mar', 10, 20, 20, 50],
['Apr', 15, 15, 40, 30]
]);
var options = {
chart: {
title: 'Feedback Odenplan'
},
series: {
0: { color: 'Red' },
1: { color: 'Brown' },
2: { color: 'Yellow' },
3: { color: 'Green' }
}
};
var chart = new google.visualization.ColumnChart(document.getElementById('columnchart_material'));
chart.draw(data, options);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div id="columnchart_material" style="width: 900px; height: 500px;"></div>
</form>
</body>
</html>