Activity6_Task3(Tutorial 3.2)
✓ Published0🌍 Public
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 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