Public
Edited
Mar 22, 2024
Insert cell
Insert cell
Insert cell
circleProps = {return {showCircles: true,circleRadius:3, colors: {buy: "green", sell: "red"}, fillOpacity: 0.3, strokeWidth: 0.5}}
Insert cell
closeLineProps = { return {stroke: "grey", strokeOpacity: 0.4, strokeWidth: 1.5}}
Insert cell
yValue = "Close"
Insert cell
visibleCharts = 2;
Insert cell
chartHeight = height - margin.top - margin.bottom;
Insert cell
height = 200
Insert cell
focusHeight = 70
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
dataAllTickers = Array.from(d3.rollup(data1, (v) => d3.sum(v, d => d[yValue]), (d) => d.Date)).map((m) => m = {date: new Date(m[0]), value: +m[1], buySellValue: +m[1] })
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