Beta release of updated data for GeoChart

100 views
Skip to first unread message

Daniel LaLiberte

unread,
Jun 10, 2020, 5:19:29 PM6/10/20
to Google Visualization API
Starting with the current release of Google Charts ('current' or '48' at this time), the GeoChart has a new feature that allows you to specify the versions of the data that will be used in looking up names of regions and rendering the GeoChart.

You can use this feature now, as described below, though you should be aware that there may still be a few issues, such as missing region names or missing region polygons, and we may update the data a few times more as we resolve those issues.    So please consider this a beta release until further notice.

In order to use the new feature with the updated data, you must include a couple of options in your chart.

var options = {
  regioncoderVersion: 1,  // names of regions and provinces
  geochartVersion: 11,  // region polygon data
};

In version '48' of Google Charts, the default versions of these data sources remain the same as in previous versions: 
  regioncoderVersion: 0,
  geochartVersion: 10,
}

This default will change in a future release, perhaps as soon as '49', but if you want to stick with a particular version of the data, you can specify that using these options.  Note that older versions of Google Charts will not use these options, and thus the data versions used are hard-coded into the GeoChart.

Please let us know if you discover any problems with this data. 

--

Scott Powell

unread,
Jun 15, 2020, 4:31:45 AM6/15/20
to Google Visualization API
Hi,

I was in touch with you recently about what seems to have become a legacy .load() method. eg
     google.load('visualization', '1', {'packages' : ['corechart,table']});

I think you fixed it, but now it seems to be back :-(
Could you check please?

regards,
Scott Powell

Daniel LaLiberte

unread,
Jun 15, 2020, 10:04:34 AM6/15/20
to Google Visualization API
Hi Scott,

The redirect of the jsapi loader had been rolled back, so maybe that is why you thought the package issue was fixed, but now we are redirecting jsapi again.

The change I made only applies, currently, to the version-specific loader, since that is where the packages are processed.  It works for the next version, but that is not out yet.  So, I can make a similar change to the top-level loader to fix the packages before they are otherwise used.   Thanks for bringing this to my attention.


--
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 view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/1a6702a4-c3d3-4224-a7ae-1dac113d3c6do%40googlegroups.com.

Daniel LaLiberte

unread,
Jun 15, 2020, 12:44:57 PM6/15/20
to Google Visualization API
Change is made.  Should be available in an hour or so.

Scott Powell

unread,
Jun 16, 2020, 4:02:12 AM6/16/20
to Google Visualization API
Thanks for getting onto this, but I'm still getting the same problem :-(
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.

Daniel LaLiberte

unread,
Jun 16, 2020, 9:30:54 AM6/16/20
to Google Visualization API
Sorry Scott.  The guys who needed the rollback were in England, and it was after midnight for them.  They are going to finish their repair this morning and I'll push out the change again as soon as possible.

To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/e8fdf657-f2ed-4756-b195-c9af98b7ad8do%40googlegroups.com.

Daniel LaLiberte

unread,
Jun 16, 2020, 10:07:21 AM6/16/20
to Google Visualization API
I have pushed out the original change again.  It will take an hour or two for caches to update.

Scott Powell

unread,
Jun 16, 2020, 10:16:40 PM6/16/20
to Google Visualization API
I'm sorry to keep pestering you about this, but looks like the load() is getting further now, but now encountering an exception:

VM36:1 Uncaught SyntaxError: Unexpected token , in JSON at position 792
    at JSON.parse (<anonymous>)
    at gvjs_Ii (jsapi_compiled_default_module.js:64)
    at gvjs_cm.gvjs_.Fwa (jsapi_compiled_default_module.js:244)
    at gvjs_cm.<anonymous> (jsapi_compiled_format_module.js:45)
    at gvjs_Wk (jsapi_compiled_default_module.js:155)
    at gvjs_3l.gvjs_.dispatchEvent (jsapi_compiled_default_module.js:153)
    at gvjs_8l (jsapi_compiled_default_module.js:235)
    at gvjs_3l.gvjs_.uua (jsapi_compiled_default_module.js:234)
    at gvjs_3l.gvjs_.Sca (jsapi_compiled_default_module.js:234)
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.

--
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.

Daniel LaLiberte

unread,
Jun 17, 2020, 10:16:21 AM6/17/20
to Google Visualization API
We are generally more restrictive now about use of strict JSON notation.  One instance is using the autoload parameter on the loader URL.  Another new case is the data returned by google.visualization.Query.  I can't tell which instance you are encountering from that bit of stack trace (not without digging through the compiled binaries), but it looks like the loader has finished loading your packages.    

Also, let's move to a new post, not appened to this announcement about the update of geodata.

To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.

--
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.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/1c89b4c2-609b-4048-9c9f-89e85db5ccb2o%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages