Activity 6 tutorial 3.2
✓ Published0🌍 Public
This example shows an interactive scatter plot of the Iris dataset, plotting sepal length against petal length and distinguishing species by shape using symbols from `d3.symbol` and the `symbolsFill` scale. The visualization loads CSV data from a GitHub repository, parses it with `d3.csvParse`, and renders axes with `d3.axisLeft` and `d3.axisBottom`. A custom legend clarifies the species shapes. The code uses modular ES6 imports from D3 v7, including `d3.scaleLinear`, `d3.scaleOrdinal`, and `d3.extent`, built within a VizHub framework.
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