Skip to main content
100%

Reusable Scatterplot Example

✓ Published0🌍 Public
NNaveed945
Last edited Jun 30, 2022
Created on Jun 30, 2022
Forked from Hello VizHub

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 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