Skip to content

Instantly share code, notes, and snippets.

View bojanvidanovic's full-sized avatar
🎯
Focusing

Bojan Vidanovic bojanvidanovic

🎯
Focusing
View GitHub Profile
@bojanvidanovic
bojanvidanovic / script.js
Last active September 22, 2020 18:14
D3.js visualisation of Yahoo Weather forecast, full article on: https://bojanvidanovic.com
// 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;
@bojanvidanovic
bojanvidanovic / forecast.json
Created December 14, 2016 12:41
Wx Forecast example
{
"response": {
"version":"0.1",
"termsofService":"http://www.wunderground.com/weather/api/d/terms.html",
"features": {
"hourly": 1
}
}
,