Published
Edited
Aug 27, 2021
1 fork
Importers
8 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
-p*Math.log2(p)
Insert cell
width = 300
Insert cell
padding = 20
Insert cell
grid_size = 10
Insert cell
data = new Array(grid_size * grid_size)
Insert cell
prettyFloatingNumber = p => p.toLocaleString(undefined, {minimumFractionDigits: 4})
Insert cell
entropy = (p) => - (p*Math.log2(p) + (1-p)*Math.log2(1-p))
Insert cell
import {checkbox} from "@jashkenas/inputs"

Insert cell
Math.random()
Insert cell
height = 300
Insert cell
d3 = require("d3@6")
Insert cell
radius = 5
Insert cell
import {slider} from "@jashkenas/inputs"

Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more