Fork of Scatter Plot with Shape
✓ Published0🌍 Public
This example displays the classic Iris dataset as a scatter plot, mapping sepal length to the x-axis and petal length to the y-axis, with each species represented by a distinct D3 symbol shape. It uses `d3.scaleLinear` for axes, `d3.scaleOrdinal` with `symbolsFill` for categorical shapes, and `d3.axisLeft`/`axisBottom` for labeled axes. A custom legend module draws the symbol shapes alongside species names. Data is fetched as CSV and parsed with `d3.csvParse`, with numeric columns converted before rendering.
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