Reusable Scatter plot Activity 8
✓ Published133🌍 Public
This interactive scatter plot visualizes the Iris dataset, showing relationships between sepal and petal measurements across three species. Using D3.js with SVG rendering, the plot cycles through different measurement pairings on the axes via setInterval, updating the scatter plot dynamically. The visualization employs d3.scaleLinear, d3.extent, d3.axisLeft, d3.axisBottom, and a reusable scatterPlot function to handle axis scaling and rendering. Points are color-coded by species (setosa, versicolor, virginica) with a legend, while axis labels and a title update to reflect the current dimension selection.
AI-generated descriptionA demonstration of reusable scatter plot.
MIT Licensed