10. Dynamic Charts
✓ Published1🌍 Public
This example shows an interactive scatter plot of the Iris dataset, where the x-axis attribute cycles through petal width, sepal width, petal length, and sepal length every two seconds. The visualization updates dynamically as the plot re-scales both axes to accommodate each new variable, while the y-axis remains fixed on sepal length. Built with React and D3 v7, the code uses `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` for the chart, with `setInterval` driving the periodic data changes. The scatter plot is rendered as SVG circles and animated in the browser window.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed