Published
Edited
Dec 5, 2019
1 star
Insert cell
md`# d3 load and normalize json file`
Insert cell
d3 = require("d3@5")
Insert cell
data = {
let origData = await d3.json("https://cors-anywhere.herokuapp.com/https://raw.githubusercontent.com/lelkaklel/sample_data/master/ppg/sample.json");
let data = [];
origData.forEach(function(x){data.push({date: new Date(x.date), value: +x.ppg})});
return data;
}
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