Skip to main content
100%

3

✓ Published2🌍 Public
Vvjc5505@gmail.com
Last edited Apr 24, 2024
Created on Apr 22, 2024
Forked from Activity-6

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes