Assignment2
✓ Published0🌍 Public
This interactive scatter plot visualizes the Iris dataset, displaying petal and sepal measurements with color-coded species markers. Using d3.csv and d3.scaleLinear, it creates an SVG visualization that animates through different measurement combinations on the x-axis every few seconds via setInterval. The code employs d3.axisBottom and d3.axisLeft for axes, while a custom legend labels species categories. The reusable scatterPlot function, defined with D3’s module pattern, accepts configurable accessors and margin settings, allowing dynamic updates as the selected measurement column changes.
AI-generated descriptionA demonstration of reusable scatter plot.
MIT Licensed