Skip to main content
100%

Activity-8_Task-3.1

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

This example uses D3 v6 to render a static scatter plot of the Iris dataset. It maps petal length and petal width to the x and y positions of circles, while coloring each point by species (setosa, versicolor, or virginica). The code loads CSV data from a GitHub raw URL, parses numeric fields, and uses `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to construct the axes. It also includes axis labels rendered as SVG text elements. The visualization is rendered directly to an SVG canvas using data joins with `selectAll` and `join`.

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