Skip to main content
100%

Activity 7 - Scatter Plot with color

✓ Published0🌍 Public
Ppasyasahas
Last edited Jun 28, 2023
Created on Jun 28, 2023
Forked from Hello VizHub

This scatter plot visualizes the Iris dataset, showing petal length on the x-axis and petal width on the y-axis while coloring each point by iris species (sky blue for setosa, light green for versicolor, orange for virginica). It uses D3.js v6 with dynamic SVG rendering across the full viewport, loading data via `d3.csv` from a GitHub raw URL. The code employs `scaleLinear`, `extent`, `axisLeft`, `axisBottom`, and custom circle attributes for highlighting sepal dimensions, with axis labels and styling applied through CSS classes.

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