Fork of Scatter Plot with Shape
✓ Published0🌍 Public
This fork renders the classic Iris dataset as an interactive scatter plot. It maps sepal length to the x-axis and petal length to the y-axis, with each point’s shape encoding the species via D3’s `symbolsFill` scale. A custom legend explains the shape mapping. The visualization uses D3 v7’s scales like `scaleLinear` and `scaleOrdinal`, along with `symbol` and `symbolsFill` to generate the shapes. Data is fetched from a remote CSV, with numeric fields parsed, and the plot is drawn using D3’s `select` and `join` APIs for declarative updates.
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