Fork of Hello VizHub
✓ Published0🌍 Public
This visualization displays merged time-series data for COVID-19 cases and accident counts from two Google Drive-hosted CSV files, showing both trends as smooth lines in a single SVG chart. Using D3 v7’s `d3.csv` for data loading, `d3.timeParse` for date conversion, and `d3.scaleTime` with `d3.axisBottom` and `d3.axisLeft` for axes, the code merges records by date and draws lines with `d3.line` and `d3.curveMonotoneX`. The steelblue line represents COVID cases while the green line shows accidents, with data processed through a `Promise.all` merge and local ES6 modules.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed