Skip to main content
Public

Share visualization

Loading preview…

Coronavirus Line Chart With Margin Convention

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 Margin Convention

0 stars1Public
CChris Briggs
Last edited Nov 19, 2021
Created on Nov 19, 2021

A line chart tracks cumulative global COVID-19 deaths over time using the Johns Hopkins dataset, with a red horizontal marker at one million deaths and a vertical “now” marker at the most recent date. The React component builds a time-scaled `d3.line` path within an SVG, applying explicit margin offsets to position axes. It uses `d3.scaleTime`, `d3.scaleLinear`, `d3.extent`, and `d3.max` to map data, while custom `XMarkerLine` and `YMarkerLine` components place annotation lines and labels.

AI-generated description

A line chart for John Hopkins Coronavirus Dataset with marker line at 1 million deaths.

Comments

Sign in to join the discussion.

MIT Licensed