Skip to main content
100%

Activity6

✓ Published0🌍 Public
Aanushapodapati99@gmail.com
Last edited Apr 17, 2024
Created on Apr 17, 2024

This scatter plot displays the relationship between sepal length and petal length for iris flowers, with each point's shape encoding the flower species. The visualization is built using D3 v7, employing the `select` and `join` API for declarative SVG construction, along with `scaleLinear`, `scaleOrdinal`, `symbolsFill`, and `symbol` for mapping data to positions and shapes. The axes are rendered via a custom `axes` module using `axisLeft` and `axisBottom`, while a separate legend component maps species names to their corresponding symbols. Data is loaded asynchronously from a CSV file fetched from GitHub, parsed with `csvParse`, and then rendered into the SVG canvas.

AI-generated description
MIT Licensed

Similar vizzes