Skip to main content
100%

Barley PunchCard Chart v4 - static

✓ Published2🌍 Public
JJimMaltby
Last edited Apr 14, 2022
Created on Apr 14, 2022

A static punchcard chart visualizes barley yield data across six sites and multiple genetic varieties, with a selected site displayed as a grid of circles representing each variety's yield per year. The D3.js v4 code uses `d3.nest()` to group the `barleyfull.csv` dataset, `d3.scalePoint()` for the categorical y-axis, `d3.scaleLinear()` for the year axis, and `d3.scaleSqrt()` for circle radius. The visualization is rendered as an SVG, employing the general update pattern with `selectAll`, `enter`, and `append` to draw circles, while axes are generated via `d3.axisLeft()` and `d3.axisBottom()`.

AI-generated description

Punch card Chart: static v4

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/2b6b5360748a06b26bfd50d96998b741

MIT Licensed

Similar vizzes