Skip to main content
Public

Share visualization

Loading preview…

Coronavirus Line Chart with Marker Line

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Coronavirus Line Chart with Marker Line

1
KKtuzinowski
Last edited Aug 2, 2021
Created on Jul 22, 2021
Forked from Hello HTML

This line chart displays the global cumulative COVID-19 death toll over time from the Johns Hopkins dataset, with a vertical marker line at the current date and a horizontal marker line at the one-million-death threshold. The visualization uses React to render an SVG path generated by d3.line, with d3.scaleTime and d3.scaleLinear mapping dates and death totals. Marker lines are drawn as separate React components (XMarkerLine, YMarkerLine) using d3 scales for positioning, while the data is loaded and parsed via d3.csv.

AI-generated description

This program loads and parses the Johns Hopkins Coronavirus Dataset

Comments

Sign in to join the discussion.

MIT Licensed