Fork of Reusable D3 Scatter Plot
✓ Published0🌍 Public
This example demonstrates a reusable scatter plot built with D3.js that visualizes the Iris dataset, cycling through different attribute combinations on the x-axis every two seconds. The chart is implemented using a configurable `scatterPlot` function that leverages D3’s `scaleLinear`, `extent`, and axis helpers to render SVG circles and axes. Data is loaded asynchronously from a CSV file using `d3.csv`, and the plot updates dynamically by rebinding the x-value mapping and re-rendering through the SVG container. The visualization uses a custom font and fills the entire browser window.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts.
Shows the Iris Dataset.
MIT Licensed