Public
Edited
Feb 25, 2023
Insert cell
Insert cell
raw = fetch(
"https://data.nasdaq.com/api/v3/datatables/NDW/FUNDTA?api_key=v7eTivCMCkfdSUBisazW"
).then((response) => response.json())
Insert cell
cols = raw.datatable.columns
Insert cell
data = raw.datatable.data.map((d) =>
d.reduce(
(t, v, i) => ({
...t,
// name: `1_${v.symbol}`,
[cols[i].name]: v
}),
{}
)
)
// .filter((d) => d.import_region === "US1")
Insert cell
rolled = d3
.rollups(
data,
(d) => d.reduce((t, v) => t + v.fund_score, 0),
(d) => d.symbol
)
.map((d) => ({ symbol: d[0], size: d[1] }))
Insert cell
Insert cell
import {Pack} from "@d3/pack"
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