Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Line chart

Public visualization

Viewing a saved revision (read-only)

6e14bd3d8c734e4382e9ea6997f0fef3

Line chart

0 stars0🌍 Public
Mmalampatiramya03@gmail.com
Last edited Apr 25, 2024
Created on Apr 25, 2024
Forked from Hello VizHub

The chart shows total COVID-19 deaths over time in Afghanistan during 2020, using a line chart to display the trend across the year. It includes axes, labels for months and total deaths, and a tooltip that appears on mouse movement to highlight specific data points. The visualization is built with D3 v7, loading CSV data via `d3.csv`, parsing dates with `d3.timeParse`, and generating the line with `d3.line`. A `d3.bisector` finds the nearest data point, while an SVG circle and HTML tooltip provide interaction. The line path uses steelblue styling on an SVG canvas.

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.