http://jsfiddle.net/asgallant/86ZA3/1/ works very well for what I want to do. I still have problems with entering the data using google spreadsheets.
On Friday, October 5, 2012 4:23:15 PM UTC+8, UI wrote: > > Can I rename a GEO-CODE manually. I do not want the label to be a number. > In this case I am mapping regions in China and only the codes function. > Goal is to rename the code to the actual province name. > > Thanks > > _______________ > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > <meta http-equiv="content-type" content="text/html; charset=utf-8" /> > <title>Google Visualization API Sample</title> > <script type="text/javascript" src="http://www.google.com/jsapi > "></script> > <script type="text/javascript"> > google.load('visualization', '1', {packages: ['geochart']}); > > function drawVisualization() { > var data = google.visualization.arrayToDataTable([ > ['Provinces', 'Popularity'], > ['CN-11', 600], > ['CN-50', 595], > ['CN-31', 700], > ['CN-53', 500] > ]); > > var geochart = new google.visualization.GeoChart( > document.getElementById('visualization')); > geochart.draw(data, {width: 556, height: 347, region:"CN", > resolution:"provinces"}); > } > > google.setOnLoadCallback(drawVisualization); > </script> > </head> > -- You received this message because you are subscribed to the Google Groups "Google Chart API" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-chart-api/-/fvLyYFhtnywJ. 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-chart-api?hl=en.
