Skip to main content
100%

Lollipop Chart: 2008-2012

✓ Published0🌍 Public
SSimon Hackbert
Last edited Nov 16, 2022
Created on Nov 2, 2022
Forked from D3 Starter

This interactive lollipop chart displays four football statistics—Goals, Goals Conceded, Titles, and League Points—for the years 2008 through 2012. Clicking a button triggers the `update` function, which transitions the vertical lines and circle markers to new values using animated `transition` calls on SVG elements. The chart reads tabular data from a remote CSV file via `d3.csv` and scales axes dynamically with `d3.scaleBand` and `d3.scaleLinear`. Rendering is entirely SVG-based, with axis and glyph transitions handled through D3's selection and merge operators.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes