Public
Edited
May 9, 2024
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
cc2 = FileAttachment("CA Cost of Living_London_only_roll@6.csv").csv()
Insert cell
Insert cell
Insert cell
Insert cell
/*selmonth_data = {
let bd = boros.filter(d => d.xd == unique_months[month_i]).filter(d => d.b == selissue)
let out = []
bd.forEach((b) => {
//b.xd = b.Borough
if(b.y != undefined && b.y > 0) {
out.push({
xd: b.Borough,
b: "only",
y: +b.y
})
}

})

out.sort((a, b) => {
return d3.descending(a.y, b.y)
})
return out.sort(function(x, y){
return d3.ascending(x.y, y.y);
})
}*/
Insert cell
Insert cell
Insert cell
cc_wide = {
let dats = long_to_wide(cc2)
let out = []
if(selcat_shared == "All") {
return dats;
} else {
dats.forEach((d) => {
const objectOrder = {
'xd': null
}
objectOrder[selcat_shared] = null
let temp = Object.assign(objectOrder, d);
out.push(temp)
})
return out;
}
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more