Skip to main content
100%

Activity6_Task3

✓ Published0🌍 Public
PPradhyumna Poralla
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Hello VizHub

This example builds a scatter plot from the Iris dataset, displaying petal length against petal width while coloring each point by species (setosa, versicolor, or virginica). The visualization uses d3.csv to load data from a GitHub-hosted CSV file and renders circles as SVG elements with d3.scaleLinear for both axes, d3.axisLeft, and d3.axisBottom for tick marks. Circle fill colors are assigned via a JavaScript switch statement, with additional attributes like sepal dimensions mapped to circle properties, though these do not affect the visual size or shape.

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