Activity6_Task3.2
✓ Published0🌍 Public
This example presents a scatter plot of the Iris dataset, visualizing sepal length against petal length with points colored and shaped by species. The visualization is built using D3 v7, leveraging modules like `d3.scaleLinear`, `d3.scaleOrdinal`, `d3.symbolsFill`, and `d3.symbol` to map data values to positions and shapes. It also demonstrates custom reusable functions, including `axes` for drawing axes with labels and `shapeLegend` for a categorical legend. Data is fetched asynchronously from a remote CSV file and parsed with `d3.csvParse`. The chart dynamically fills the browser window using `window.innerWidth` and `window.innerHeight`.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed