Published
Edited
Sep 27, 2020
1 fork
4 stars
Insert cell
md`# PSR B1919+21 data, radial display

Data: [Borgar Þorsteinsson](https://bl.ocks.org/borgar/31c1e476b8e92a11d7e9)
`
Insert cell
Insert cell
radialLine = d3.lineRadial()
.angle((d,i) => Math.PI * 2 / 300 * i + 3*Math.PI/4 )
.radius((d,i) => rScale(d))
.curve(d3.curveLinearClosed)
Insert cell
rScale = d3.scaleLinear()
.domain([
d3.min(data, d => d3.min(d)),
d3.max(data, d => d3.max(d))
])
.range([60, 130])
Insert cell
data = d3.csvParseRows(await FileAttachment("pulsar.csv").text(), d3.autoType)
Insert cell
height = 500
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