Skip to main content
100%

Tutorial3.1

✓ Published0🌍 Public
Cchintamanenithp@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Hello VizHub

This example uses D3 v6 to create a scatter plot of the Iris dataset, loaded via CSV from a GitHub repository. It visualizes petal length on the x-axis and petal width on the y-axis, with circles colored by species (setosa, versicolor, virginica) using skyblue, lightgreen, and orange. The code employs `d3.csv` for parsing, `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` for scales and axes. The SVG rendering uses `select` and `join` to bind data to circle elements.

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