Public
Edited
May 7, 2023
Insert cell
Insert cell
Insert cell
jre = mathjs.round(mathjs.cos(k * theta), 5)
Insert cell
jim = mathjs.round(mathjs.sin(k * theta), 5)
Insert cell
j = mathjs.complex(mathjs.cos(k * theta), mathjs.sin(k * theta))
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
d3.select("body").append("svg")
.attr("width", 1440)
.attr("height", 30)
.append("g")
.attr("transform", "translate(0,30)")
.call(axis)
Insert cell
{
let path = `M${x(data[0].date)},${y(data[0].close)}`;
for (let i = 1; i < data.length; ++i) {
path += `L${x(data[i].date)},${y(data[i].close)}`;
}
return path;
}
Insert cell
Insert cell
Insert cell
Insert cell
mathjs = require('mathjs')
Insert cell
Insert cell
Insert cell
Insert cell
viewHeight = 256
Insert cell
viewWidth = 256
Insert cell
scale = 150
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
height = 256
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