Project
✓ Published0🌍 Public
This example displays a scatter plot of rainfall (mm) against crop yield (tons per hectare) for three data points, using D3 v7. It loads the D3 library via UNPKG and uses d3.select, d3.scaleLinear, d3.extent, and d3.axisBottom/axisLeft to render axes and circles in SVG. The chart includes axis labels, margins, and a tooltip style, with hardcoded data rather than fetching from external files. It also demonstrates ES6 module imports, including a local message module, in a separate JavaScript file.
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