Reusable Scatter Plot - With Different Shapes- ICE7
✓ Published0🌍 Public
This example presents a reusable scatter plot built with React and D3.js, visualizing the Iris dataset. It uses D3 scales and axes to map petal width and sepal length, while a `scaleOrdinal` with `symbols` generates distinct shapes for each species. The visualization automatically cycles through different X-axis columns every 15 seconds using `setInterval`, demonstrating dynamic updates. The chart is rendered as SVG with animated transitions, and the code leverages D3's `csv` loader, `axisLeft`, `axisBottom`, and `symbolGenerator` to create an interactive and adaptive plot.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed