Public
Edited
Jan 13, 2023
3 stars
Insert cell
Insert cell
kde = require('fast-kde')
Insert cell
Insert cell
Insert cell
density1d = kde.density1d(values1d, { bandwidth: 3, pad, bins })
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
density2d = kde.density2d(
dataNew.map((d) => [d[0], d[1] * 15]),
{ bandwidth: 1, extent: [10, 100] }
)
Insert cell
import { dataNew } from "@mojo-rising/untitled"
Insert cell
Insert cell
Insert cell
density2d.bandwidth(bw2d).heatmap({ color: d3.interpolatePiYG }) // returns an HTML canvas
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