Published
Edited
Sep 18, 2021
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
html`${returnFractionSVG('1.5')}`
Insert cell
html`${returnFractionSVG('-1.5')}`
Insert cell
html`${returnFractionSVG('1/4')}`
Insert cell
html`${returnFractionSVG(1/4)}`
Insert cell
html`${returnFractionSVG('4/6')}`
Insert cell
html`${returnFractionSVG(2/3)}`
Insert cell
(1/3) * 3
Insert cell
(2/3) * 3
Insert cell
new Fraction(2/3)
Insert cell
Insert cell
weird.toFraction()[0].toNumber()
Insert cell
weird.toFraction()[1].toNumber()
Insert cell
Fraction = (await require('fractional@1.0.0/index.js').catch(() => window["Fraction"]))
Insert cell
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