Reusable Scatterplot Example
✓ Published0🌍 Public
This example presents a reusable scatterplot component built with D3.js (v3 via CDN) and rendered as SVG. It visualizes the classic Iris dataset, mapping sepal length to the x-axis, petal length to the y-axis, and sepal width to the radius of each circle, while species determines color. The chart is configured through a chainable API (e.g., `.outerWidth()`, `.xAxisLabel()`, `.rMax()`), demonstrating how to load D3 from UNPKG, import local ES6 modules, and implement a modular, reusable visualization with custom axes, scales, and labels.
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