Skip to main content
100%

Activity6_Task3.1

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

This example displays the classic Iris dataset as a scatter plot, mapping sepal length to the x-axis and petal length to the y-axis, with points colored by species using the Tableau 10 categorical color scheme. It demonstrates D3.js v7’s modular API, importing a reusable `scatterPlot` function from a local ES6 module and using core utilities like `d3.map`, `d3.scaleLinear`, `d3.scaleOrdinal`, and `d3.axisBottom`/`d3.axisLeft` to build the chart. The data is fetched as CSV from a GitHub gist, and the SVG is constructed with `d3.create` and rendered via a `join` operation for circles.

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