Published
Edited
Feb 22, 2021
13 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
data = ({
x: x,
y: x.map(x => a0 + a1 * x + a2 * x * x + Math.random() * noise)
})
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
format = d3.format('.3f')
Insert cell
dCorrelation = format(DistanceCorrelation)
Insert cell
Insert cell
pCorrelation = format(PearsonCorrelation)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
dl = require('datalib')
Insert cell
d3 = require('d3@6')
Insert cell
import { vl } from '@vega/vega-lite-api'
Insert cell
import { Button, Range } from '@observablehq/inputs'
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