Hey guys, I'm working on this right now. I've run into a small snag, I cant
seem to get NU up there but if you were just looking for the prov's then it
would work fine. With geocharts you can use ISO code in numbers or letters
so Canada is 'CA' and for each Provence you put its associated code 'CA-NB'
http://en.wikipedia.org/wiki/ISO_3166-2:CA
Here is what I have in case it is helpful for you:
<html>
<head>
<script type='text/javascript' src='https://www.google.com/jsapi'></script>
<script type='text/javascript'>
google.load('visualization', '1', {'packages': ['geochart']});
google.setOnLoadCallback(drawMarkersMap);
function drawMarkersMap() {
var data = google.visualization.arrayToDataTable([
['Prov', 'Youth %', 'Overall %'],
['CA-PE', 51.6, 70.4],
['CA-NL', 29.6, 53.3],
['CA-NB', 41.6, 65.6],
['CA-NS', 37.6, 61.3],
['CA-QC', 45.0, 63.5],
['CA-ON', 38.2, 57.6],
['CA-MB', 31.9, 55.7],
['CA-SK', 30.1, 59.6],
['CA-AB', 33.7, 52.3],
['CA-BC', 39.9, 55.9],
['CA-YT', 40.2, 62.5],
['CA-NT', 25.2, 47.4],
['CA-NU', 14.6, 39.4],
]);
var options = {
region: 'CA',
*displayMode**:* *'markers'**,*
colorAxis: {colors: ['red', 'green', 'blue']}
};
var chart = new
google.visualization.GeoChart(document.getElementById('chart_div'));
chart.draw(data, options);
};
</script>
</head>
<body>
<div id="chart_div" style="width: 900px; height: 500px;"></div>
</body>
</html>
On Friday, June 6, 2008 6:04:42 AM UTC-4, mrliamhennessy wrote:
>
> Is there much demand out there for Map charts showing regions within a
> country? We have the USA with individual states, so could we get
> Canada with its provinces? Or Ireland, or France?
--
You received this message because you are subscribed to the Google Groups
"Google Chart 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-chart-api.
For more options, visit https://groups.google.com/d/optout.