Skip to main content
100%

Activity6_Task3(Tutorial 3.2)

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

This example demonstrates a scatter plot of the Iris dataset, mapping sepal length to the x-axis and petal length to the y-axis, with species encoded by point shape. It uses D3 v7’s `scaleLinear`, `scaleOrdinal`, and `symbolsFill` to position and style marks, while custom ES6 modules handle axes and a shape legend. The visualization loads CSV data via `fetch` and `csvParse`, and updates through a state-based `setState` pattern. Interactive rendering occurs across the full window, with margins and labels configured for clarity.

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