Skip to main content
100%

Fork of Scatter Plot with Shape

✓ Published0🌍 Public
Aaniteshterala2000
Last edited Jul 8, 2023
Created on Jul 8, 2023
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes