Chart 4
✓ Published0🌍 Public
This heat map compares monthly COVID-19 confirmed cases against agricultural yield, with the x-axis showing months and the y-axis two categories: "Yield" and "Confirmed." The color encoding uses the D3 sequential Inferno scale (`d3.interpolateInferno`) to map numeric values. Built with D3 v6 and SVG, the chart loads data from a remote CSV using `d3.csv`, applies band scales (`d3.scaleBand`) for positioning, and includes axes, a legend, and mouseover tooltips to display exact month, yield, and case numbers.
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