Skip to main content
100%

Activity6_Task3(Tutorial 3.1)

✓ Published0🌍 Public
Nnithinnc@outlook.com
Last edited Apr 11, 2024
Created on Apr 11, 2024

This scatter plot visualizes the Iris dataset, showing petal length on the x-axis and petal width on the y-axis, with each point colored by species (skyblue for setosa, lightgreen for versicolor, orange for virginica). The code loads CSV data from a GitHub gist using D3 v6’s `csv` function, maps the data into scaled coordinates via `scaleLinear` with `extent`, and renders circles as SVG elements. Axes are drawn using `axisLeft` and `axisBottom`, with rotated text labels for both dimensions. The visualization dynamically fills the browser window and uses D3’s `select` and `join` for data binding.

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