Skip to main content
100%

3task_activity_6

✓ Published0🌍 Public
Aazeemrm630@gmail.com
Last edited Oct 25, 2024
Created on Oct 25, 2024

This example displays an interactive scatter plot of the Iris dataset, mapping sepal length to the x-axis and petal length to the y-axis, with species distinguished by different point shapes. It loads data asynchronously from a CSV file hosted on GitHub, parsing it with `csvParse` and converting numeric fields. The visualization uses D3 v7 APIs including `scaleLinear`, `scaleOrdinal`, `symbolsFill`, and `axisLeft`/`axisBottom` to render scales, axes, and a custom shape legend. The code demonstrates modular ES6 imports, separating scatter plot, axis, and legend logic into distinct local modules.

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