Skip to content

Latest commit

 

History

History
60 lines (47 loc) · 2.52 KB

index.md

File metadata and controls

60 lines (47 loc) · 2.52 KB
layout title
page
Visualizing your data on the web using D3

Open science should be visible science. And what better way to make your research visible and accessible than putting it on the internet. But no one wants to read endless tables of data. We’d rather look at graphs, or, even better, have the possibility of interacting with the data. And we have probably all created some graphs. But in order to make them accessible to many people, we will have to move away from our specialized software to a more universal platform - the internet.

We want to:

  • Display our data on a website to increase visibility and accessibility of our research.

Our goal is to create a dynamic bubble plot (a prettier version of a scatter plot) and publish it on the internet.

Along the way, we will learn:

  • how to create our first own web page
  • how to change the appearance of certain elements on the page
  • how to integrate graphical elements into our page
  • how to publish our page
  • how to allow interaction with elements
  • how to store data for the use in webpages
  • how to create a graph in D3

Prerequisites {.prereq}

  • Github account and Github client for your operating system (Windows, Linux, iOS).
  • Participation in at least one SWC workshop.
  • Familiarity with at least one programming language: concept of loops, functions, and conditionals.
  • Familiarity with your favorite text editor (Sublime 2 is a good option).
  • You will need to be comfortable with Google!
  • Preferably Google Chrome (because of its excellent developer tools).

Setup {.prereq}

  • It's probably a good idea to install a GitHub client.

Topics

  1. HTML
  2. CSS
  3. Images and SVG
  4. Publishing with Github
  5. JavaScript
  6. JSON data format
  7. D3 Setup
  8. D3 Into the data
  9. D3 Add and remove
  10. D3 Transitions xx. What now?

We are using gapminder data and the later lessons are based on an example by Mike Bostock. In order to make this example slightly easier, we interpolated the data. The data files can be found here. Lessons created by Isabell Kiral-Kornek and Robert Kerr.