Reusable D3 scatter plot template
✓ Published2🌍 Public
This example presents a reusable scatter plot template built with D3.js that visualizes the classic Iris dataset. The plot animates through different variable pairings, cycling between petal width, sepal width, petal length, and sepal length every two seconds, updating the x-axis and circle positions accordingly. The code uses D3’s `csv` loader, `scaleLinear`, `axisLeft`, and `axisBottom` APIs within a custom `scatterPlot` function, rendering SVG circles with tooltips. The visualization fills the browser window and employs the Share Tech font for axis tick labels.
AI-generated descriptionD3 Scatter Polt template
MIT Licensed