Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 Update Pattern – (block)Punchcard Example V5

Public visualization

Viewing a saved revision (read-only)

5cf1823b681e44089f0fa74fe414dad9

D3 Update Pattern – (block)Punchcard Example V5

0 stars0🌍 Public
JJimMaltby
Last edited May 14, 2022
Created on May 14, 2022

This interactive punchcard chart visualizes barley yield data across multiple sites and years, with each circle’s size mapped to the yield value. A dropdown menu filters the dataset by site, and when a new site is selected, the chart transitions smoothly. The visualization uses D3 v5’s `dispatch` event system, `d3.nest()`, and `d3.map()`, along with `d3.scaleSqrt()` for circle scaling and `transition().duration(750)` for animated updates. The data is loaded from a CSV file, and the chart is rendered as SVG with ordinal axes.

AI-generated description

Punch card Chart:v4 dynamic

A vanilla HTML implementation of Chris Henrick PunchCard tutorial "D3JS v4 General Update Pattern: Punchcard Chart"

https://clhenrick.io/d3-v4-general-update-pattern-punchcard-chart/

bl.ock: https://bl.ocks.org/clhenrick/5394591a62a5e61fb8753c1dca13db47