Hi I'm trying to create a simple bar chart from a database query which 
outputs to a List 

The C# is a simple list that pulls through "OSName" and "OS Count" and then 
converts to JSON Data.

*List<string> googleDataset = new List<string>();*
*     foreach(DataRow row in dsAssets.Rows)*
            
*                {*
*                       googleDataset.Add("['" + row["OSNAME"] +  "', " + 
row["OS Count"] + "]");*
*                }*
*      var jsonData = JsonConvert.SerializeObject(googleDataset);*

I just cant find the correct Javascrript code to display this data in a 
Google Chart, the data that is created in the *GoogleDataset List *looks 
like :

*['Win 2008 R2', 51]['Win 2016', 10]['Win 10', 4]['Win 2008', 4]['Win 7', 
53]['Win 2012 R2', 22]['Win 10', 38]['Win 8.1', 1]['Win 10', 30]['Win 10', 
8]['Win 10', 2]['Win 2008 R2', 2]['Win 2016', 3]['Win 7', 3]['Win 2012 R2', 
1]['Win 10', 1]['Win 7', 2]['Win 2008 R2', 1]*


Does anyone have an example of how I would accomplish this please ?

Cheers

Andy

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/b12ba42b-5722-4255-b728-4246a8e52d98n%40googlegroups.com.

Reply via email to