Skip to main content
100%

Reusable D3 Scatter Plot ICE 7

✓ Published0🌍 Public
PPrasanth
Last edited Apr 6, 2023
Created on Mar 30, 2023

This interactive scatter plot visualizes the Iris flower dataset, encoding petal width, sepal length, sepal width, and petal length across the x and y axes. The code uses D3 v6 with a reusable `scatterPlot` module, employing `scaleLinear` for axes, `scaleOrdinal` for symbols, and `symbolGenerator` for markers. An animated `setInterval` cycles through different column pairs every second, while colors distinguish species. The SVG rendering includes axes via `axisLeft` and `axisBottom`, with a legend and title overlaid on screen.

AI-generated description
MIT Licensed

Similar vizzes