Fork of Scatter Plot with Shape
✓ Published0🌍 Public
This example demonstrates a scatter plot of the Iris dataset, coloring points by shape to distinguish between the three species of iris flowers. It uses D3 v7 to load the CSV data from a GitHub repository, scales the sepal length and petal length axes with `scaleLinear`, and maps species to symbols using `scaleOrdinal` with `symbolsFill`. A custom shape legend built with D3’s `symbol` generator shows the species-to-shape correspondence, while axes labels are added via a separate module importing `axisLeft` and `axisBottom`.
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