Skip to main content
100%

Reusable Scatter Plot with D3.js

✓ Published0🌍 Public
HHemanthh81
Last edited Jul 22, 2023
Created on Jul 22, 2023
Forked from Hello VizHub

This example demonstrates a reusable scatter plot built with D3.js that visualizes the Iris dataset, mapping sepal length and sepal width for each flower specimen. The code loads data from a remote CSV file using `d3.csv`, converts numeric columns, and constructs an SVG chart with `d3.scaleLinear` for the axes. It uses `d3.axisBottom` and `d3.axisLeft` to render the scales, and appends circles with a steelblue fill to represent data points.

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