🌍 Public
tutorial 3.1
This scatter plot visualizes the Iris dataset, showing petal length against petal width, with each point color-coded by species (setosa, versicolor, or virginica). The visualization includes axes labeled "Petal_Length" and "sepal_Length," though the latter is mislabeled relative to the y-axis values. It loads data from a GitHub-hosted CSV using d3.csv, and constructs the chart with d3.scaleLinear, d3.extent, d3.axisLeft, and d3.axisBottom. Circles are rendered via SVG using d3.select and join, with radii and colors mapped from the data.
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
Comments
Sign in to join the discussion.