Skip to main content
100%

Getting the Data

✓ Published0🌍 Public
CCurran Kelleher
Last edited Mar 19, 2015
Created on Mar 7, 2015

This example demonstrates the raw output of a live sensor-data API by displaying a plain-text summary of the data returned from the Data Canvas - Sense Your City API. It fetches aggregated environmental readings (temperature, light, humidity, dust, etc.) for Geneva at five-minute intervals over the past day, then prints the number of rows, the number of columns, and the original CSV string onto the page. The code uses jQuery’s `$.get` to request the CSV and D3.js v3’s `d3.csv.parse` to convert the response into an array of objects. No chart or visual encoding is applied—the focus is purely on inspecting the dataset’s structure and content.

AI-generated description

This program fetches data from the Data Canvas - Sense Your City API.

Similar vizzes