You have several problems with that output. First, your string outputs are not quoted:
['Semester 2', Software Engineering ], should be: ['Semester 2', 'Software Engineering' ], Second, you cannot mix data types in a column. A column must contain either all strings or all numbers (or dates, datatimes, etc), not a mix of both. Third, the LineChart visualization requires all columns beyond the first to be "number" types. I suspect you have both your query and output set up incorrectly for the effect you want to achieve. On Wednesday, November 20, 2013 2:08:22 AM UTC-5, cik oshin wrote: > > When I Open the page in a browser, right click and view the source code, I > can see the data that I want, but why it did not display on browser? > > > After I open the the page browser ,right click and this is the source > code: > > > > <html> <head> <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([ ['x', 'CGPA' ], > ['Semester 1', 24422 ], ['Semester 2', Software Engineering ], > ['Semester 3', No 9 Jalan Pendamar Indah 5A ], ['Semester 4', Taman > Pendamar Indah ], ['Semester 5', 42000 ], ['Semester 6', > Klang ], ['Semester 7', Selangor ], ['Semester 8', ], > ['Semester 9', 601388876 ], ['Semester 10', > [email protected] <javascript:> ], ['Semester 11', 2.63 ], > ['Semester 12', 2.81 ], ]); var options = { title: > 'Student Performance' }; var chart = new > google.visualization.LineChart(document.getElementById('chart_div')); > chart.draw(data, options); } </script> </head> <body> <div > id="chart_div" style="width: 1300px; height: 500px;"></div> </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/groups/opt_out.
