Skip to main content
100%

Activity6_Task3.1

✓ Published1🌍 Public
Ccharishmakalyanapu@gmail.com
Last edited Oct 23, 2024
Created on Oct 23, 2024
Forked from Hello VizHub

This example renders a scatter plot of the classic Iris dataset, showing petal length on the x-axis and petal width on the y-axis, with each of the three species (setosa, versicolor, virginica) colored skyblue, lightgreen, or orange. It loads CSV data via `d3.csv`, parses numeric fields, and uses `scaleLinear` with `extent` to map values to SVG coordinates. Circles are bound with `selectAll` and `join`, while `axisLeft` and `axisBottom` generate labeled axes. The code accesses D3’s `csv`, `select`, `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` APIs from d3.v6, and styling is applied through SVG attributes.

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