Sgvizler has moved to github. This site and its repository will no longer be maintained.
wiki:Sgvizler/Chart/GoogleVisualizationGeoChart

This chart and its examples are implemented using Sgvizler 0.6, for version 0.5 see Sgvizler/0.5/DesigningQueries.

source:misc/image/screenshot/gGeoChart.png

Google Geo Chart

Draws a map and displays numerical values as graded colors on the map with hovering effects.

Chart ID
google.visualization.GeoChart
External reference
 https://developers.google.com/chart/interactive/docs/gallery/geochart
Other similiar charts
Sgvizler/Chart/GoogleVisualizationGeoMap
Sgvizler/Chart/GoogleVisualizationMap
Sgvizler/Chart/sgvizler.visualization.Map?

Query result set format

2 modes: regions mode or markers mode.

Regions mode, 1--2 columns:

  1. Region location, the region to highlight
    Datatype: String, see Google's page for correct formats.
  2. Region color, i.e., value to represent
    Datatype: Number

Last column is optional.

See  Google's page on this chart for markers mode and more details.

Chart options

See  Google's page on this chart for all available options.

See Sgvizler/Using, or the example(s) below, for how to set options.

Live Example

Query: The population of South America per country .

HTML

<div id="ex"
   data-sgvizler-endpoint="http://sws.ifi.uio.no/sparql/world"
   data-sgvizler-query="
        SELECT ?Country ?Population 
        { [] w:hasName ?Country ; 
             w:hasCountryPopulation ?Population ; 
             w:isCountryInContinent [ rdfs:label &quot;South America&quot; ] ; 
        } ORDER BY DESC(?Population)" 
   data-sgvizler-chart="google.visualization.GeoChart"
   data-sgvizler-chart-options="region=005" 
   style="width:400px; height:265px; border:1px solid black; display: inline-block;"></div>

Result

The result of the HTML above (left), and a google.visualization.Table rendering of the same query (right).


Notes

See Sgvizler/Setup for how Sgvizler is setup on this site.

Note that the query and visualization is ment to show the use of Sgvizler, and may not be the most appropriate way of illustrating this result set.

Feedback

Tickets

No results

User Examples and Comments

Users, please insert (links to) other examples of usage of this Sgvizler chart, or relevant comments here.