Published
Edited
Feb 23, 2021
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
data = Object.assign((await FileAttachment("GME.csv").csv()).map(({Date, Open, High, Low, Close, Adj_Close, Volume}) => ({orient: 'left', name: Date, y: +Close, x: +Volume})), {x: "Volume", y: "Close price"})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
height = 720
Insert cell
margin = ({top: 20, right: 30, bottom: 30, left: 40})
Insert cell
function length(path) {
return d3.create("svg:path").attr("d", path).node().getTotalLength();
}
Insert cell
d3 = require("d3@6")
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