Activity 8
✓ Published0🌍 Public
This gallery example demonstrates a reusable scatter plot visualization of the Iris dataset, rendered as an SVG using the D3 library (v6.7.0). The plot maps petal length on the x-axis and sepal length on the y-axis, with data points colored by species (skyblue for setosa, lightgreen for versicolor, and orange for virginica). The visualization includes a legend and axis labels, and is built using custom JavaScript functions that leverage D3’s `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` APIs. Data is loaded asynchronously from a remote CSV file using D3’s `csv` method.
AI-generated descriptionA demonstration of reusable scatter plot.
MIT Licensed