SIMPLE
ONLINE
CHARTS

Public datasets

Awesome Public Datasets (github)

Kaggle Datasets

Cool Datasets (twitter)

EU OpenData Portal

RAWGraphs

http://rawgraphs.io/

http://rawgraphs.io/

Datawrapper

http://datawrapper.de/

Let's try some real data...

http://data.europa.eu/euodp/en/home

Dataviz libraries

https://github.com/zingchart/awesome-charting

Problems with dataviz libraries:

Code examples

Code examples

Since we're starting with the code now: you can find all the examples on github:

https://github.com/dominikus/online-data-visualization

Taucharts

https://www.taucharts.com/

Taucharts Basics

<script
 src="https://cdn.jsdelivr.net/d3js/3.5.17/d3.min.js"
 charset="utf-8"></script>
<script
 src="https://cdn.jsdelivr.net/npm/taucharts@1/build/production/tauCharts.min.js"
 type="text/javascript"></script>

<link rel="stylesheet" type="text/css"
 href="https://cdn.jsdelivr.net/npm/taucharts@1/build/production/tauCharts.min.css">
  

Taucharts Basics II

var chart = new tauCharts.Chart({
      data: defData,
      type: 'bar',
      x: 'date',
      y: 'count',
      color: 'type'
  });
  
  chart.renderTo('#chart');

fetch API

fetch API

Easy way to get remote (or local!) data into your script.
Replaces the old XMLHttpRequest API.

MDN: Fetch API

fetch API

Basic syntax (text):

fetch(remoteURL)
  .then(function(result){
    return result.text();
  })
  .then(function(parsedResult){
    // do something with the text...
  });
  

fetch API

Basic syntax (JSON):

fetch(remoteURL)
  .then(function(result){
    return result.json();
  })
  .then(function(parsedResult){
    // do something with the JSON...
  });
  

fetch API

Widely supported. If you need IE support, use polyfill.

MDN: Fetch API

https://api.taucharts.com/basic/guide.html