Please Help, Actually i want to save images(png,jpg) on server. How i can 
do in this code?

On Monday, 25 May 2015 11:13:06 UTC+5, Ghulam Jafar wrote:
>
> how can i save the chart as an image on server. I am using the following 
> code.
>
> <html xmlns="http://www.w3.org/1999/xhtml";>
> <head runat="server">
>     <title></title>
>     <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([
>               ['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>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to