Public
Edited
Jun 14, 2024
3 forks
Insert cell
Insert cell
manifold = FileAttachment("markets.19adf94e.json").json()
Insert cell
metaculus = FileAttachment("metaculus-markets.50f96bd5.json").json()
Insert cell
polymarket = FileAttachment("polymarket-markets.67eaed54.json").json()
Insert cell
kalshi = FileAttachment("kalshi-markets.0b58f60f.json").json()
Insert cell
data = [...manifold, ...metaculus, ...polymarket, ...kalshi]
Insert cell
Insert cell
function sparkbar(max) {
return (x) => htl.html`<div style="
background: var(--theme-blue);
color: black;
font: 10px/1.6 var(--sans-serif);
width: ${(100 * x) / max}%;
float: right;
padding-right: 3px;
box-sizing: border-box;
overflow: visible;
display: flex;
justify-content: end;">${x.toLocaleString("en-US")}`;
}
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