Fork of Scatter Plot with Shape
✓ Published0🌍 Public
This scatter plot displays iris flower measurements with sepal length on the x-axis and petal length on the y-axis, using d3.scaleLinear for position scales and d3.scaleOrdinal with d3.symbolsFill to map species to distinct shapes. A custom shapeLegend module renders the species key, while d3.axisLeft and d3.axisBottom generate the axes with labels. The visualization loads CSV data via fetch and d3.csvParse, and both local ES6 modules (axes, scatterPlot, shapeLegend) and D3 v7 imports demonstrate modular code organization.
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