3
✓ Published2🌍 Public
This heat map visualizes agricultural yield and confirmed COVID-19 cases across months, using a dual-row layout with a shared monthly x-axis. Each row encodes one variable—Yield above, Confirmed below—with color intensity mapped through `d3.scaleSequential` and `d3.interpolateInferno`. The code loads CSV data from GitHub via `d3.csv`, extracts months from dates, and renders SVG rectangles with `d3.axisBottom` and `d3.axisLeft` for axes. A mouseover tooltip displays row values, and a legend with `d3.scaleLinear` and `d3.axisBottom` clarifies the color scale.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed