Skip to main content
100%

Fork of Hello VizHub

✓ Published0🌍 Public
CChandra Prakash Reddy Kalwakolu
Last edited Apr 22, 2024
Created on Apr 22, 2024
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes