Graphic, schematic maps can very useful in a wide range of charting scenarios and thanks to a recent upgrade, now you can use the Google Chart API to create them. As we reported earlier, Google’s Chart API is one of the simplest of all Google APIs. By passing parameters in the URL (i.e., HTTP GET), you can get images for various types of charts — bar charts, pie charts, line charts, etc — that you can embed on any web page. Plenty of mashups are already using the API including the 15+ mashups listed here.
The recent update adds this fun and useful capability as you can see in the docs. You can embed static maps that you can color by country or by US state. Here are a few simple examples of such maps, starting with a world map:
http://chart.apis.google.com/chart?cht=t&chs=440×220&chd=s:_&chtm=world
You’ll note that the parameters in the URL control the map, three of which are mandatory for any Google chart:
Compare the world map to the “Hello World” of Google Charts to see how the same API can be used to simple pie chart (click on the pie chart to see the full url/call):
Going back to the world map, see how changing the chtm parameter in the URL displays a map of Europe and using three additional parameters (chco, chld, and chd) highlight Hungary in green, while keeping other European countries an off-white:
Are people already using the Google Chart API to make maps? Take a look at the article Making maps with Google Chart API (listed in the ProgrammableWeb mashup database), which discusses the issues involved with generating the following fuller example of a world map:
Jeffrey Barke wrote a short tutorial for creating maps with the Google Chart API.
As others have noted, the maps one can create in this way are more demonstrations of what’s possible than fully developed functionality — so it’ll be interesting to see whether/how Google refines this feature of the Google Chart API.
For more on the Google Chart API at ProgrammableWeb check-out Google Chart Mashups: Love and Stats.





©ProgrammableWeb.com 2013. All rights reserved.
Terms of Service | Privacy Policy
7 Responses to “Google Chart API’s New Schematic Maps”
at 4:36 am
[...] grupie dyskusyjnej, większości więc chyba umknęły – ja też dowiedziałem się dopiero dzięki dzisiejszemu newsowi na Programmable [...]
at 3:33 am
[...] Google Chart API’s New Schematic Maps Graphic, schematic maps can very useful in a wide range of charting scenarios and thanks to a recent upgrade, now you can use the Google Chart API to create them. (tags: api chart google maps) [...]
at 12:39 pm
[...] Google Chart API’s New Schematic Maps New upgrades to Google Maps (tags: maps tools) [...]
at 1:57 pm
[...] Highlight a specific country: If you just need a simple image to highlight a specific country, it’s easy to do it with Google Charts. [...]
at 7:17 pm
The size of 420 by 220 pixels is too small for the regional view.
at 5:51 am
if we want to highlight the borders,then what we have to do.
at 7:49 am
I created a tutorial on how to create heat maps with the Google Chart API – http://s.gavinr.com/hlL2h2