Visualizations of data usage across the archive.
Main webpage: https://usage.dandiarchive.org
When deploying a fork that points at a different data repository, update the
BASE_URL constant near the top of src/plots.js:
const BASE_URL = "https://raw.githubusercontent.com/myorg/myrepo/main";npm install
npm run devnpm test # unit tests (Vitest, in jsdom)
npm run test:coverage # the same, with a coverage report
npm run test:e2e # integration tests (Playwright, in Chromium)
npm run test:visual # screenshot comparison of the map against committed baselinesThe unit tests cover the page's entry module (src/plots.ts) as well as its
helpers: tests/unit/plots-harness.ts loads the page's markup into jsdom,
stands in for Plotly and for the network, and drives the page through its
controls. Coverage from both the unit and the integration tests is reported
to Codecov; to see what the integration tests exercise in the browser, run
npm run test:e2e:coverage and then npm run coverage:integration.
- Region codes — how the geographic section reads the ISO
3166 codes of
by_region.tsv, and how to regenerate the table it reads them with.