Public
Edited
May 10
Insert cell
Insert cell
Insert cell
data = fetch(
"https://api.data.adj.news/api/search/query?q=India%20Pakistan&limit=50&api_key=38314d45-7899-4f51-a860-f6b898707a70"
).then((response) => response.json())
Insert cell
Insert cell
marketPriceHistory = {
return await fetchProcessedMarketHistoriesMax(
processedData.marketIds,
processedData.marketNames,
"polymarket"
);
}
Insert cell
// only show limited markets
markets = marketPriceHistory.slice(0, 10)
Insert cell
// Create the chart using our template
viewof chart = AdjacentChart({
title: `Semantic India and Pakistan Markets`,
subtitle: "via Polymarket markets",
data: markets,
seriesNames: Object.keys(markets[0]).filter((key) => key !== "date"),
seriesColors: ["#E63946", "#1D3557", "#2A9D8F", "#F4A261"],
xAxis: { field: "date", label: "Date", format: "%b %d" },
yAxis: { label: "Probability (%)", domain: [0, 100] },
width: width,
aspectRatio: 0.625,
showLegend: true,
showWatermark: true,
showEndLabels: true,
showDots: false,
showGrid: true
})
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