Skip to main content
100%

Task 4

✓ Published0🌍 Public
VVinish Reddy Kamireddy
Last edited Apr 26, 2024
Created on Apr 26, 2024
Forked from Hello VizHub

This example presents a multi-line chart tracking total COVID-19 deaths over time for the first 20 countries in a filtered dataset. It loads data from a remote CSV file and uses D3 v6 to render SVG paths, with an ordinal color scale distinguishing each country and a legend identifying them. The code employs `d3.csv`, `d3.timeParse`, `d3.scaleTime`, `d3.scaleLinear`, `d3.axisBottom`, `d3.axisLeft`, and `d3.line` to build the visualization. The rendering approach uses a standard SVG container with configured margins for axes and labels.

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