Published
Edited
Oct 15, 2019
Insert cell
md`# Cdf example`
Insert cell
a = ({ xs: [1, 2, 3], ys: [1, 1, 4] })
Insert cell
lodash = require("lodash")
Insert cell
Insert cell
cdfLib = require('https://bundle.run/@foretold/cdf@1.0.9')
Insert cell
{
var samp = new cdfLib.Samples(asSamples);
return samp.toCdf({
size: 50,
width: 30
});
}
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