Skip to main content
Public

Share visualization

Loading preview…

Smoothed Line Chart

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

Smoothed Line Chart

1 star0
PPhilippe Rivière
Last edited Jun 13, 2020
Created on Jun 13, 2020
View stargazers

This smoothed line chart tracks daily COVID-19 death counts over time for the top 50 countries, using a log-scaled y-axis and data from the Johns Hopkins Coronavirus Dataset. The chart applies a Gaussian blur to smooth the raw daily values, rendering each country as a line in an SVG. Hovering over any point triggers a Voronoi overlay built with `d3-delaunay`, highlighting the corresponding country's line and displaying a tooltip with the exact date, total deaths, and country name. The visualization uses React with D3 v5 components like `scaleLog`, `scaleTime`, and `axisBottom`.

AI-generated description

Line chart of cases by country. Data from Johns Hopkins Coronavirus Dataset.

Hover to see details and illuminate lines.

This variant shows values smoothed using a the d3.blur proposal

Comments

Sign in to join the discussion.

MIT Licensed