Public
Edited
Jun 14, 2024
Fork of All Markets
Insert cell
Insert cell
metaculus = FileAttachment("metaculus-markets.50f96bd5.json").json()
Insert cell
polymarket = FileAttachment("polymarket-markets.67eaed54.json").json()
Insert cell
data = [...metaculus, ...polymarket].filter(d => d.Status === "active" && d.Probability !== 0 && d.Question.Title.includes("Presidential Election"))
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
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