Skip to main content
100%

Fork of Interactive Sparkline

✓ Published0🌍 Public
AAustin Lackey
Last edited Sep 24, 2024
Created on Sep 24, 2024

This interactive sparkline charts weekly NPM download counts for the d3 package, as fetched from a remote JSON data source. The visualization displays a purple area chart with a bold line, and hovering over the chart reveals a vertical guide and a large text label showing the exact weekly total and date range. The implementation uses the d3 library, specifically `scaleTime`, `scaleLinear`, `line`, `area`, and `bisector`, along with `flatRollup` and `sum` to aggregate daily data into weekly buckets.

AI-generated description

A reproduction of the interactive sparkline for weekly downloads of NPM packages.

MIT Licensed

Similar vizzes