Hi, I am using google column chart in my website and i have some problem. I have set the title of the chart in my script but it does not showing on the chart. second i want to export my report to PDF/Excel for the user how i can do this any basic example could be very helpful for me. Here is my script
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %> <!DOCTYPE html> <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', 'Excellent'], ['Jan', 10, 30, 60], ['Feb', 5, 15, 80], ['Mar', 10, 30, 60], ['Apr', 5, 5, 90] ]); var options = { chart: { title: 'Feedback Odenplan', }, series: { 0: { color: 'Red' }, 1: { color: 'Yellow' }, 2: { 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> Thanks Alot. /Shahid -- You received this message because you are subscribed to the Google Groups "Google Chart 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-chart-api. For more options, visit https://groups.google.com/d/optout.
