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

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

source:misc/image/screenshot/gSteppedAreaChart.png

Google Stepped Area Chart

Draws a stepped area chart, i.e., an area chart where the lines are horizontal, or a "continuous" column chart.

Chart ID
google.visualization.SteppedAreaChart
External reference
 https://developers.google.com/chart/interactive/docs/gallery/steppedareachart
Other similiar charts
Sgvizler/Chart/GoogleVisualizationAnnotatedTimeLine
Sgvizler/Chart/GoogleVisualizationAreaChart
Sgvizler/Chart/GoogleVisualizationBarChart
Sgvizler/Chart/GoogleVisualizationBubbleChart
Sgvizler/Chart/GoogleVisualizationColumnChart
Sgvizler/Chart/GoogleVisualizationImageSparkLine
Sgvizler/Chart/GoogleVisualizationLineChart
Sgvizler/Chart/GoogleVisualizationMotionChart
Sgvizler/Chart/GoogleVisualizationScatterChart
Sgvizler/Chart/GoogleVisualizationSteppedAreaChart

Query result set format

2--n columns:

  1. X-axis label
    Datatype: Any?
  2. First Y-axis value
    Datatype: Number
  3. Second Y-axis value
    Datatype: Number
  4. ... and so on.

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: The total production of oil, gas, condensate, NGL and water per year on Ekofisk.

The year is set as the first column, becoming the X-axis value (remember to sort), and the remaining result set columns become the columns in the chart.

HTML

<div id="ex"
   data-sgvizler-endpoint="http://sws.ifi.uio.no/sparql/npd"
   data-sgvizler-query="
        SELECT ?year ?Oil_millSm3 ?Gas_billSm3 ?NGL_millSm3 ?Condensate_millSm3 ?Water_millSm3 
        { ?period a npdv:FieldProductionPeriod ; 
              npdv:hasField &lt;http://sws.ifi.uio.no/npd/field/Ekofisk&gt; ; 
              npdv:year ?year ; 
              npdv:producedNetOilMillSm3 ?Oil_millSm3 ; 
              npdv:producedNetGasBillSm3 ?Gas_billSm3 ; 
              npdv:producedNetNGLMillSm3 ?NGL_millSm3 ; 
              npdv:producedNetCondensateMillSm3 ?Condensate_millSm3 ; 
              npdv:producedWaterMillSm3 ?Water_millSm3 ;
              OPTIONAL{ ?period npdv:month ?month } . 
              FILTER (!bound(?month)) 
         } ORDER BY ?year" 
   data-sgvizler-chart="google.visualization.SteppedAreaChart"
   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.