Hi
Im trying to plot a datatable on my website using google Line chart. 

i tried as follows:

 <script type="text/javascript">

    

      google.load("visualization", "1", {packages:["corechart"]});

    

      google.setOnLoadCallback(drawChart);

    

      function drawChart() {

    

      var data='<%=data()%>'; //this is C# code which returns the datatable

        var options = {

          title: 'DATA'

        };

  var chart = new google.visualization.LineChart(document.getElementById(
'chart_div'));

        chart.draw(data, options);

      }

      </script>

But the chart gives an error : Data table is not defined.


Can anyone tell me what I did wrong here??

regards

Jishnu

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-visualization-api/-/xF-TdyncZf0J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to