Commit bcd8962
viz: interactive D3 sunburst + heatmap site on GitHub Pages
Adds an interactive single-page visualization for the v1.0 classification,
hosted at https://quantbai.github.io/crypto-sectors/. Pure vanilla JS +
D3 v7 from jsdelivr CDN; no framework, no build step, no node_modules.
Components
- Hero sunburst (3 rings: class / sector / sub-sector) with drill-in to
individual asset wedges; weighted by asset count with 1.5° minimum
wedge floor; Overview ↔ Zoomed state machine with breadcrumb
- Asset detail card (sticky sidebar, slide-up sheet on mobile with
44×44 close button)
- Chain × sector matrix heatmap with neutral luminance ramp via
color-mix(in oklch); bidirectional highlight with sunburst
- Search with 120ms debounce, live sunburst dimming during typing,
global / shortcut
- Validation KPI footer pulling from data/validation.json
(sector spread, 19/19 rolling stability, E5 chain-vs-sector finding)
Design system
- DESIGN.md (635 lines) — canonical visual spec drafted by UX design
lead, dual-reviewed by Linear-style designer + Bloomberg-style
quant-viz engineer; all 8 dual-review P0s baked in
- Phosphor cyan hsl(186 70% 58%) accent (avoids class 40 sage collision)
- Geist Sans + Geist Mono variable woff2 (~140KB total)
- Dark mode only; light mode deferred to v1.1
- 4 class colors at 78° hue intervals, colorblind-safe
- WCAG AA throughout, AAA on main text (17:1 contrast)
- Focus ring: 2px outline + 4px halo per WCAG 2.4.13
Data pipeline
- scripts/build_viz_data.py compiles taxonomy.yaml + snapshot.csv +
validation/numbers.json into docs/data/{taxonomy,validation}.json
- taxonomy.json: 9.7KB gzipped (well under 30KB budget)
- Total page weight: 221KB raw / 30KB gzipped excluding D3 CDN
Deployment
- .github/workflows/pages.yml auto-deploys on push to main; includes
stale-data check (fails CI if docs/data/ not regenerated after
snapshot/taxonomy/numbers change)
Multi-agent build process (1 lead + 6 specialist subagents)
- UX design lead: drafted DESIGN.md
- Linear-style designer + Bloomberg-style quant-viz engineer: dual
reviewed DESIGN.md, produced DESIGN-AMENDMENTS.md (8 P0)
- QD-E (quant-infra-architect): built scripts/build_viz_data.py +
docs/* + pages.yml from DESIGN.md + amendments + tech spec
- Visual designer + accessibility specialist: dual reviewed live
rendering via gstack:browse, caught init crash showstopper
- QD-F (quant-infra-architect): fixed 4 P0 (D3 dead chain, init
cascade, IIFE error fence, hero meta counters) + 6 P1 (dead anchor,
scoped scroll-margin, aria pluralization, SVG focus, mobile bottom
sheet, scrollIntoView guard); local verified 62 sunburst wedges,
full 14×10 heatmap, zero console errors
Hero counter polish: shows n_active_sub_sectors (33) instead of
taxonomy total (44 includes deprecated_slots + extension reserves)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 36844b6 commit bcd8962
11 files changed
Lines changed: 8460 additions & 0 deletions
File tree
- .github/workflows
- docs
- data
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
0 commit comments