--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
<?php mysql_connect('localhost','akshita','123456'); mysql_select_db('rcusers'); $sqlquery1="select userid,group_name,req_nodes,actualPE from jobs where userid='zhang' limit 200"; $sqlresult1=mysql_query($sqlquery1); $rows=array(); while($r=mysql_fetch_assoc($sqlresult1)){ $rows[]=$r; } print json_encode($rows); ?>
chartDraw.php<html> <head> <!--Load the AJAX API --> <script type="text/javascript" src="https://www.google.com/jsapi"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> //Load the visualization API and the piechart package google.load('visualization','1',{'packages':['corechart']}); //Set a callback to run when the google visualization API is loaded google.setOnLoadCallback(drawchart); function drawChart(){ var jsonData = $.ajax({ url:"getData.php", dataType:"json", async:false }).responseText; //Create our data table out of JSON data loaded from server var data=new google.visualization.DataTable(jsonData); //Instantiate and draw our chart, passing in some options var chart=new google.visualization.PieChart(document.getElementById('chart_div')); chart.draw(data,{width:400,height:240}); }
</script> </head> <body> <!--Div that will hold the pie chart --> <div id="chart_div"></div> </body> </html>
--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/UdOFybnvFo0/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
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 google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--University Of Florida, United StatesAkshita GuptaGraduate CS Student
--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 google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--University Of Florida, United StatesAkshita GuptaGraduate CS Student
--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/UdOFybnvFo0/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--University Of Florida, United StatesAkshita GuptaGraduate CS Student
--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/UdOFybnvFo0/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--University Of Florida, United StatesAkshita GuptaGraduate CS Student
--
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--University Of Florida, United StatesAkshita GuptaGraduate CS Student
--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/UdOFybnvFo0/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Nothing. It is blank.
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--University Of Florida, United StatesAkshita GuptaGraduate CS Student
--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/UdOFybnvFo0/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
...
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Nothing. It is blank.
Corrected one mistake.
...Visit this group at http://groups.google.com/group</u
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
...
--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/UdOFybnvFo0/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Try this:
Nothing. It is blank.
Corrected one mistake.
...<font face="courier new, monos
Try this:
Nothing. It is blank.
Corrected one mistake.
...<span style="white-space:p
--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/UdOFybnvFo0/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
...
--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/UdOFybnvFo0/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
...
--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/UdOFybnvFo0/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
...
Try this:
Nothing. It is blank.
Corrected one mistake.
...var jsonData = $.ajax({<b
--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/UdOFybnvFo0/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
...
--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/UdOFybnvFo0/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Try this:
Nothing. It is blank.
Corrected one mistake.
...google.load('visualization','1',{'packages':['corechart']});<b
--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/UdOFybnvFo0/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
...
--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/UdOFybnvFo0/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
...
Pull your data from MySQL using whatever tools you like (I prefer PDO, but to each his own) and put it in an array (if it isn't fetched that way already). The simplest way to encode your data in JSON is to use the json_encode function (http://se.php.net/manual/en/function.json-encode.php), which takes an array and outputs a JSON string representation of the array. Non-associative arrays are output as JSON arrays; associative arrays are output as JSON object maps (see examples on the PHP json_encode page). json_encode is included in PHP 5.2+ and is available as a module for older PHP versions.
--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/UdOFybnvFo0/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Try this:
...<d
Hello Colleagues,
How can I read data from an external database (say, MS SQL Server or
MySQL) and show it in a Google Chart?
Thank you.
{"cols":[{"label":"dates","type":"date"},{"label":"nav","type":"number"}],"rows":[{"c":[{"v":"Date(2013, 1, 01)"},{"v":10}]},{"c":[{"v":"Date(2013, 9, 01)"},{"v":30}]}]}
There's a simple example here: http://code.google.com/apis/chart/interactive/docs/php_example.html and the documentation for creating a data source is here: http://code.google.com/apis/chart/interactive/docs/dev/implementing_data_source.htmlI tend to use a middle road, where I pull my data from mySQL and/or Oracle and encode it in JSON. I use jQuery's AJAX to make requests to my source and pass the data to the chart drawing functions.
...url: <span style="color:rgb(0,136,0);font-family:
...var data = new google.visualization.DataTable(jsonData<span style="color:rgb(102,102,102);font-family:monospace;white
Hello,Thanks for your reply, i am stuck in to bind data in to google.visualization.datatable. actualy i m retrieving data from data base in DataTable of .net and i want to fill data in google datatable.i tried to convert into json table and assign to google.datatable.i attached 2 files of my project. please suggest your best.
On Tuesday, 13 May 2014 23:24:53 UTC+5:30, Andrew Gallant wrote:
When using AJAX, you should handle all of the chart drawing in the "success" callback, as AJAX is asynchronous:$.ajax({type: "POST",url: "getdata.aspx/GetLocation",contentType: "application/json; charset=utf-8",dataType: "json",async: true,success: function (msg1) {alert(msg1.d);datat = msg1.d;// Create the data table.var data = new google.visualization.DataTable(datat);
// create and draw charts here}});
...On Tuesday, May 13, 2014 9:08:25 AM UTC-4, Vikas Sangal wrote:<blockquote class=
--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/UdOFybnvFo0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.
i m calling that page for web method i use this separate page because i need many methods to get details.after calling web method the return string will get into msg1
On Wed, May 14, 2014 at 1:07 PM, Andrew Gallant <asgall...@gmail.com> wrote:
What does getdata.aspx.cs return (that is, when querying getdata.aspx/GetLocation, what does msg1 contain in the success handler)?
On Wednesday, May 14, 2014 2:22:08 AM UTC-4, Vikas Sangal wrote:
Hello,Thanks for your reply, i am stuck in to bind data in to google.visualization.datatable. actualy i m retrieving data from data base in DataTable of .net and i want to fill data in google datatable.i tried to convert into json table and assign to google.datatable.i attached 2 files of my project. please suggest your best.
On Tuesday, 13 May 2014 23:24:53 UTC+5:30, Andrew Gallant wrote:
When using AJAX, you should handle all of the chart drawing in the "success" callback, as AJAX is asynchronous:
$.ajax({type: "POST",
...<span style="font-family:courier
Showing the values on the bars isn't supported in the API.I wrote a hack that can make something like it happen that works well if you have only 1 series of data in your ColumnChart: http://jsfiddle.net/asgallant/QjQNX/
On Wednesday, October 9, 2013 12:34:02 PM UTC-4, Patrick Beaudan wrote:Understood, I thought it'd be more complicated somehow. Got it to work fine thank you very much. Is there a way to automatically show values on the bars of bar charts (or on top of the bars), just like in the slices of pie charts? Seems like a basic function but can't find that option.
On Wednesday, October 9, 2013 5:10:35 AM UTC-7, asgallant wrote:The JSON format is for the DataTable, not the chart - the chart doesn't care how you got the data into the DataTable. In other words, you don't have to do anything different when constructing the JSON string for a DataTable for a ColumnChart (vertical bar chart) than for a PieChart.
On Wednesday, October 9, 2013 12:49:37 AM UTC-4, Patrick Beaudan wrote:Is there a sample code similar to that for pie charts in this thread, that would show how to build JSON data for a vertical bar chart?I'm currently using a version with hard coded data that works fine, but would like to read the data from a mysql database using a JSON formatted data table. Any example of how to generate that JSON table for a bar chart would be much appreciated.<script type="text/javascript">
...
Showing the values on the bars isn't supported in the API.I wrote a hack that can make something like it happen that works well if you have only 1 series of data in your ColumnChart: http://jsfiddle.net/asgallant/QjQNX/
On Wednesday, October 9, 2013 12:34:02 PM UTC-4, Patrick Beaudan wrote:Understood, I thought it'd be more complicated somehow. Got it to work fine thank you very much. Is there a way to automatically show values on the bars of bar charts (or on top of the bars), just like in the slices of pie charts? Seems like a basic function but can't find that option.
On Wednesday, October 9, 2013 5:10:35 AM UTC-7, asgallant wrote:The JSON format is for the DataTable, not the chart - the chart doesn't care how you got the data into the DataTable. In other words, you don't have to do anything different when constructing the JSON string for a DataTable for a ColumnChart (vertical bar chart) than for a PieChart.
On Wednesday, October 9, 2013 12:49:37 AM UTC-4, Patrick Beaudan wrote:Is there a sample code similar to that for pie charts in this thread, that would show how to build JSON data for a vertical bar chart?I'm currently using a version with hard coded data that works fine, but would like to read the data from a mysql database using a JSON formatted data table. Any example of how to generate that JSON table for a bar chart would be much appreciated.<script type="text/javascript">
...
Showing the values on the bars isn't supported in the API.I wrote a hack that can make something like it happen that works well if you have only 1 series of data in your ColumnChart: http://jsfiddle.net/asgallant/QjQNX/
On Wednesday, October 9, 2013 12:34:02 PM UTC-4, Patrick Beaudan wrote:Understood, I thought it'd be more complicated somehow. Got it to work fine thank you very much. Is there a way to automatically show values on the bars of bar charts (or on top of the bars), just like in the slices of pie charts? Seems like a basic function but can't find that option.
On Wednesday, October 9, 2013 5:10:35 AM UTC-7, asgallant wrote:The JSON format is for the DataTable, not the chart - the chart doesn't care how you got the data into the DataTable. In other words, you don't have to do anything different when constructing the JSON string for a DataTable for a ColumnChart (vertical bar chart) than for a PieChart.
On Wednesday, October 9, 2013 12:49:37 AM UTC-4, Patrick Beaudan wrote:Is there a sample code similar to that for pie charts in this thread, that would show how to build JSON data for a vertical bar chart?I'm currently using a version with hard coded data that works fine, but would like to read the data from a mysql database using a JSON formatted data table. Any example of how to generate that JSON table for a bar chart would be much appreciated.<script type="text/javascript">
...
Showing the values on the bars isn't supported in the API.I wrote a hack that can make something like it happen that works well if you have only 1 series of data in your ColumnChart: http://jsfiddle.net/asgallant/QjQNX/
On Wednesday, October 9, 2013 12:34:02 PM UTC-4, Patrick Beaudan wrote:Understood, I thought it'd be more complicated somehow. Got it to work fine thank you very much. Is there a way to automatically show values on the bars of bar charts (or on top of the bars), just like in the slices of pie charts? Seems like a basic function but can't find that option.
On Wednesday, October 9, 2013 5:10:35 AM UTC-7, asgallant wrote:The JSON format is for the DataTable, not the chart - the chart doesn't care how you got the data into the DataTable. In other words, you don't have to do anything different when constructing the JSON string for a DataTable for a ColumnChart (vertical bar chart) than for a PieChart.
On Wednesday, October 9, 2013 12:49:37 AM UTC-4, Patrick Beaudan wrote:Is there a sample code similar to that for pie charts in this thread, that would show how to build JSON data for a vertical bar chart?I'm currently using a version with hard coded data that works fine, but would like to read the data from a mysql database using a JSON formatted data table. Any example of how to generate that JSON table for a bar chart would be much appreciated.<script type="text/javascript">
...
Showing the values on the bars isn't supported in the API.I wrote a hack that can make something like it happen that works well if you have only 1 series of data in your ColumnChart: http://jsfiddle.net/asgallant/QjQNX/
On Wednesday, October 9, 2013 12:34:02 PM UTC-4, Patrick Beaudan wrote:Understood, I thought it'd be more complicated somehow. Got it to work fine thank you very much. Is there a way to automatically show values on the bars of bar charts (or on top of the bars), just like in the slices of pie charts? Seems like a basic function but can't find that option.
On Wednesday, October 9, 2013 5:10:35 AM UTC-7, asgallant wrote:The JSON format is for the DataTable, not the chart - the chart doesn't care how you got the data into the DataTable. In other words, you don't have to do anything different when constructing the JSON string for a DataTable for a ColumnChart (vertical bar chart) than for a PieChart.
On Wednesday, October 9, 2013 12:49:37 AM UTC-4, Patrick Beaudan wrote:Is there a sample code similar to that for pie charts in this thread, that would show how to build JSON data for a vertical bar chart?I'm currently using a version with hard coded data that works fine, but would like to read the data from a mysql database using a JSON formatted data table. Any example of how to generate that JSON table for a bar chart would be much appreciated.<script type="text/javascript">
...