block by curran 3b811f05a0ce39d0d7cd

Data Canvas Part 4 - Colors

Full Screen

This program makes a bar chart and line chart from data in the Data Canvas - Sense Your City API.

The line chart shows the temperature for all cities with available data for the past 24 hours, while the bar chart shows the current temperature of each city. The data is up to date, and updates every 5 minutes. Colors code the lines to the city.

Based on

index.html

barChart.js

generateColors.js

getLatestData.js

lineChart.js

main.js

styles.css