Activity6_Task3.1
✓ Published0🌍 Public
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed