Skip to content

gianordoli/ofcourse_lecture_11_datavis

Repository files navigation

[ofCourse] Lecture 11: Data Visualization

Examples for Lecture 1 of ofCourse: data visualization using openFrameworks.

We are going to work with data from Weather Underground in JSON format.

ofCourse is a creative coding program aimed at people with no coding skills. It provides a hands-on experience, tools, ideas, and full support for students to make their own projects.


Setup

Addons

These examples require ofxJSON. Download and follow the installation instructions.

Weather Underground API


Examples

To run the examples you need to comment out these lines on setup:

    ofBuffer file = ofBufferFromFile("api_key.txt");  
    string apiKey = file;

And replace the apiKey variable with your own API key.

Example 1: Acquire

Loading JSON data from the Weather Underground API and displaying temperature for one city.

Example 2: Parse/Filter

  • Requesting data for different cities.
  • Reading high and low temperatures.
  • Storing data into City objects.

Example 3: Represent

  • Comparing temperatures using a line chart.

Line Chart

Example 4: Interact/Refine

  • Using an area chart.
  • Adding visibility switch to cities.

Area Chart

Example 5: Refine

  • Experimenting with bar charts to represent amplitudes.

Bar Chart

About

Examples for Lecture 1 of OF COURSE: data visualization

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages