Hello all,
I was fiddling around with the new Embed API, and I noticed an annoying bug. As far as I could see, this hasn't been reported yet. Sorry if it has been already!
The code is basically a map showing the sessions in different provinces in the Netherlands.
And I do see the map with the regions colored... EXCEPT for the provinces/regions containing a space in their name! In this case: North Brabant, South Holland and North Holland.
Please help me here if someone knows a fix or a workaround, or else, please let the API guys know this!
Thanks,
Yarmo
var map = new gapi.analytics.googleCharts.DataChart({
query: {
ids: 'ga:XXXXX',
metrics: 'ga:sessions',
dimensions: 'ga:region',
'filters': 'ga:country==Netherlands',
'start-date': '30daysAgo',
'end-date': 'yesterday'
},
chart: {
container: 'map-container',
type: 'GEO',
options: {
width: '100%',
region: 'NL',
resolution: 'provinces'
}
}
});