A JavaScript Data Display Framework
Simon Heimler University of Applied Sciences Augsburg
Data Display
Data representation in general, not just visualizations
Framework
Not another library, but a framework to bind them all
<link rel="stylesheet" href="lib/plasticjs/plastic.css">
<script src="lib/plasticjs/plastic.js"></script>
<plastic style="height: 400px; width: 800px;">
<div class="plastic-data"
data-url="data/simple-default.json"
data-format="simple-default">
</div>
<div class="plastic-display" data-module="simple-table"></div>
</plastic>
<div class="plastic-js" style="height: 400px">
<script class="plastic-query" type="application/sparql-query" data-query-url="http://dbpedia.org/sparql">
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX type: <http://dbpedia.org/class/yago/>
PREFIX prop: <http://dbpedia.org/property/>
SELECT ?country_name ?population
WHERE {
?country a type:LandlockedCountries .
?country rdfs:label ?country_name .
?country prop:populationEstimate ?population .
FILTER (?population > 12000000 && langMatches(lang(?country_name), "en")) .
}
ORDER BY DESC(?population)
</script>
<script class="plastic-display" data-module="discrete-bar-chart" type="application/json">
{
"tooltips": true,
"showValues": true
}
</script>
</div>
OpenSource at GitHub:
www.github.com/Fannon/plastic.js
Presentation online at:
www.fannon.de/p/plasticjs-intro