Fork of Scatter Plot Daniel Chen
✓ Published0🌍 Public
This interactive scatter plot visualizes the classic Iris dataset, plotting sepal and petal measurements against each other. The visualization uses D3 v7 to render animated SVG circles that transition to new positions when the user changes the X-axis or Y-axis variable via the dropdown menus. The code demonstrates modular ES6 imports, d3.scaleLinear for axis scaling, d3.scaleOrdinal for categorical coloring by species, and d3.axisLeft and axisBottom for creating labeled axes with grid lines.
AI-generated description2023/9/22 daniel chen scatter plot with menus and colors An example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed