Public
Edited
Feb 24, 2023
Insert cell
Insert cell
data = {
const raw = await fetch(
"https://data.nasdaq.com/api/v3/datatables/NDW/EQTA.json?api_key=v7eTivCMCkfdSUBisazW"
).then((response) => response.json());
const cols = raw.datatable.columns;
return raw.datatable.data.map((d) =>
d.reduce((t, v, i) => ({ ...t, [cols[i].name]: v }), {})
);
// .filter((d) => d.country === "United States");
}
Insert cell
data
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Plot.plot({
marks: [
Plot.ruleY([0]),
Plot.lineY(data, { x: "date", y: "50_day_ma", z: "symbol" })
]
})
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