Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Bojan Vidanovic bojanvidanovic

🎯
Focusing
View GitHub Profile
@bojanvidanovic
bojanvidanovic / script.js
Last active Sep 22, 2020
D3.js visualisation of Yahoo Weather forecast, full article on: https://bojanvidanovic.com
View script.js
// SVG dimensions
var margin = {
top: 15,
right: 15,
bottom: 20,
left: 15
};
var width = 1200 - margin.left - margin.right;
var height = 140 - margin.top - margin.bottom;
View forecast.json
{
"response": {
"version":"0.1",
"termsofService":"http://www.wunderground.com/weather/api/d/terms.html",
"features": {
"hourly": 1
}
}
,