Skip to content

Instantly share code, notes, and snippets.

@fumi
Last active December 19, 2015 07:09
Show Gist options
  • Save fumi/5917031 to your computer and use it in GitHub Desktop.
Save fumi/5917031 to your computer and use it in GitHub Desktop.
sgvizler piechart by div element
<div id="sgvizler_div_piechart"
data-sgvizler-endpoint="http://ja.dbpedia.org/sparql"
data-sgvizler-query="SELECT ?class (count(?instance) AS ?noOfInstances)
WHERE {
?instance a ?class .
}
GROUP BY ?class
ORDER BY DESC(?noOfInstances)"
data-sgvizler-chart="gPieChart"
data-sgvizler-loglevel="2"
data-sgvizler-chart-options="is3D=true|title=Number of instances"
style="width:800px; height:400px;"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment