-
-
Real-world Vega Gapminder dataset: quoted commas, SI billions Y-axis formatting, and auto-computed W3C data summary.
-
RFC 4180 parser pinpointing exact line/column CSV errors with 1-click Auto-Clean Invalid Rows recovery action.
-
SonoChart Studio workbench: tactile SVG hatch patterns, spatial Web Audio scrubber, and contextual Point k-of-N bar.
-
1-key (C) Low-Vision High-Contrast mode (#0A0A0A canvas) preserving multi-series geometric SVG hatch patterns.
-
Stage 3.5 real-world validation: 100% pass rate across 17 NOAA, NASA & Vega datasets vs 41.7% Chart2Music baseline.
-
Four-layer client-side architecture: RFC 4180 parser, OLS stats, tactile SVG/CVD matrix, and 16-bit WAV synth.
Inspiration
Millions of charts published in STEM courses, municipal reports, public health notices, and civic journalism are exported as silent images or color-only <canvas> elements. For blind students using screen readers, a complex time-series chart is often reduced to a generic one-line alt attribute; for the ~300 million people globally with Color Vision Deficiency (CVD), multi-series charts that rely on color alone violate WCAG 1.4.1 (Use of Color). Meanwhile, public schools, universities, and municipalities face strict legal mandates under ADA Title II and WCAG 2.2 Level AA to make complex data visualizations accessible.
When we audited existing open-source and web sonification tools during our research phase, we uncovered three specific, documented gaps in their GitHub issue trackers:
- Lost Positional Context in Screen Readers (Highcharts Sonification Studio Issue #28): Stepping through graph elements lacked contextual
"Point k of N"position announcements and unified keyboard playback controls. - Broken Arrow-Key Navigation in NVDA Browse Mode (Chart2Music Issue #689): Modern screen readers intercept arrow keys unless roving controls and
aria-live="polite"status regions are properly structured. - Multi-Series Collapse in Low-Vision High-Contrast Mode (MAIDR Issue #361): Turning all series white on a black canvas without geometric hatch patterns causes multi-series plots to become indistinguishable.
We built SonoChart Studio to solve all three problems in a single 30-second, zero-cloud browser workflow.
What it does
SonoChart Studio is a 100% browser-native authoring workbench that transforms raw .csv or .json datasets into a 4-layer accessible data bundle:
- Spatial Web Audio Sonification Engine:
- Quantizes numeric data values to harmonic musical scales (
C Major Pentatonic,C Diatonic Major, or12-Tone Chromatic) across three octaves (C3at130.8 HztoC6at1046.5 Hz). - Maps X-axis progression to stereo panning (
-0.85 Lto+0.85 R) with distinct instrument timbres per series (Triangle,Marimba,Sine) and harmonic earcon chimes on statistical peaks and troughs. - Synthesizes downloadable 44.1 kHz 16-bit Stereo PCM
.wavaudio files directly in browser memory with zero server uploads.
- Quantizes numeric data values to harmonic musical scales (
- Tactile Geometric SVG Patterns & Color-Vision Simulator:
- Pairs high-contrast palette tokens with four unique geometric
<pattern>definitions (diagonal-hatch,cross-hatch,dot-matrix,vertical-bars) and four distinct node marker geometries (circle,diamond,square,triangle). - Includes a real-time physiological Machado et al. (2009) Color-Vision Deficiency simulator (
Deuteranopia,Protanopia,Tritanopia,Achromatopsia) and a single-key (C) Low-Vision High-Contrast Mode (#0A0A0Acanvas with neon#00FF66and#FFD600patterned strokes).
- Pairs high-contrast palette tokens with four unique geometric
- W3C WAI Complex-Image Statistical Summary & Contextual ARIA Live Scrubber:
- Deterministically calculates ordinary least-squares (OLS) linear regression slope,
R^2, mean, median, interquartile range (IQR = Q3 - Q1), Z-score (z = (x - mean) / stdDev) anomalies, and net percentage change. - Emits real-time
"Point k of N"contextual screen-reader announcements (role="status",aria-live="polite") synchronized with an interactive semantic<table>.
- Deterministically calculates ordinary least-squares (OLS) linear regression slope,
- One-Click Self-Contained Accessible Bundle Export:
- Standalone
.HTMLWidget: Zero-dependency WCAG 2.2 AA interactive chart embed containing the patterned<svg>, inline Web Audio synthesizer, keyboard navigation, W3C statistical summary, and<table>. - Spatial
.WAVTrack: 44.1 kHz 16-bit Stereo PCM audio recording of the dataset. - Tactile
.SVGVector: Standalone vector chart with embedded<pattern>definitions. - Compliance
.JSONReport: Full WCAG 2.2 AA luminance contrast, APCA perceptual contrast (Lc >= 60), and pairwiseDelta Eaudit certificate.
- Standalone
How we built it
- Frontend & Visual Architecture: Built with TypeScript, React 18, and Vite using an archival-precision studio aesthetic (warm archival paper
#F6F4EEpaired with deep carbon ink#141413, signal cobalt#0047AB, and vermilion#C83E00, plusSpace GroteskandIBM Plex Monotypography). - Deterministic Tabular Parser (
src/engine/dataParser.ts): Implements an RFC 4180 quote-aware CSV tokenizer, automatic delimiter detection (,,;,\t), UTF-8 BOM stripping, automatic categorical metadata column filtering, exact line/column error diagnostics, and a 1-click Auto-Clean Invalid Rows recovery engine. - Statistical & Perceptual Math (
src/engine/statistics.ts,src/engine/colorAccessibility.ts): Implements OLS linear regression, quartile interpolation, WCAG 2.2 relative luminance contrast ((L1 + 0.05) / (L2 + 0.05)), APCA-W3 perceptual contrast (Lc), CIE76 LabDelta E, and Machado (2009)3x3RGB simulation matrices. - Web Audio & RIFF/WAVE Encoder (
src/engine/sonifier.ts): Combines real-timeAudioContext+StereoPannerNodesynthesis with a deterministic in-memory 44-byteRIFF/WAVE16-bit stereo PCM encoder.
Challenges we ran into
- Real-World Messy CSV & JSON Formats: When we tested our initial parser against external datasets from NOAA, NASA GISTEMP, World Bank, and Vega Datasets (
gapminder-health-income.csv,cars.json,barley.json), our initial validation pass rate was66.7%(8/12). Quoted country names containing commas ("Congo, Dem. Rep."), European semicolon delimiters (;), intermediate ISO string columns (ABW), and JSON objects with numeric first keys caused failures. We engineered an RFC 4180 quote-aware tokenizer, categorical column detector, and JSON key promoter, bringing our post-fix validation pass rate to100%(12/12validation +5/5untouched hold-out datasets). - Preventing Adversarial XSS in Self-Contained HTML Widget Exports: During adversarial testing with
<script>payloads inside CSV labels, we discovered that while HTML table cells were escaped, embedding rawJSON.stringify()inside an inline<script>block could leave unescaped<script>sequences. We hardenedsrc/engine/exporter.tsby encoding<and>as\u003cand\u003einside inline JSON literals. - Eliminating High-Contrast CSS Transition Lag in Firefox: Real-browser QA in headless Firefox revealed that an
80msCSS background transition caused buttons to briefly appear white-on-white immediately after pressing theCshortcut. Removing theme transition lag and synchronizing thedata-high-contrastroot attribute fixed the issue across both Desktop (1440x900) and Mobile (390x844) viewports.
Accomplishments that we're proud of
- 14 / 14 End-to-End Browser QA Scenarios Passed: Verified in headless Firefox across Desktop (
1440x900) and Mobile (390x844) on both our live deployed GitHub Pages site and local build with zero console or page errors. - 100% Real-World & Hold-Out Dataset Validation (
4.6msavg parse latency): Validated across 12 real-world, edge, negative, and adversarial cases plus 5 untouched Vega hold-out datasets (us-employment.csv,disasters.csv,barley.json,cars.json,budget.json), outperforming thechart2musicv1.x baseline (100%vs41.7%end-to-end task completion). - 70%+ Reduction in Authoring Steps: Replaces a 9–12 step workflow across 3–4 separate tools with a 3-step, 30-second browser studio that outputs
.html,.wav,.svg, and.jsonartifacts simultaneously.
What we learned
- Accessibility cannot be a single-modality afterthought: a chart that is accessible to a blind screen-reader user via Web Audio and ARIA still fails a low-vision or color-blind reader unless geometric SVG
<pattern>fills and APCA contrast are engineered into the same rendering pipeline. - Testing against real external datasets early exposes structural edge cases (such as 10-digit population numbers requiring compact
1.49BSI axis formatting and dense X-axis label striding) that synthetic unit tests miss.
What's next for SonoChart Studio
- Braille Embosser & Tactile Graphics Export: Adding direct export to
.brf(Braille Ready Format) and swell-paper tactile graphic templates for classroom Braille embossers. - LMS & Civic CMS Embed Plugins: One-click oEmbed and Canvas/Moodle LMS blocks so teachers can drop interactive SonoChart widgets directly into course assignments.
Built With
- accessibility
- css3
- html5
- playwright
- react
- svg
- typescript
- vite
- vitest
- wcag
- web-audio-api