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

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

source:misc/image/screenshot/gGauge.png

Google Gauge

Draws a gauge.

Chart ID
google.visualization.Gauge
External reference
 https://developers.google.com/chart/interactive/docs/gallery/gauge

Query result set format

1--n columns:

  1. Value
    Datatype: Number
  2. ... and so on
    Datatype: Number

... each value becomes a separate gauge.

See  Google's page on this chart for 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: Some oil and gas production numbers.

Note we limit the number of result to 2.

HTML

<div id="ex"
   data-sgvizler-endpoint="http://sws.ifi.uio.no/sparql/npd"
   data-sgvizler-query="
        SELECT ?Oil ?Gas
        { ?period a npdv:FieldProductionPeriod ; 
              npdv:hasField &lt;http://sws.ifi.uio.no/npd/field/Ekofisk&gt; ; 
              npdv:producedNetOilMillSm3 ?Oil ; 
              npdv:producedNetGasBillSm3 ?Gas ; 
        } LIMIT 2"
   data-sgvizler-chart="google.visualization.Gauge"
   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.