Skip to main content
100%

Fork of animation of reusable D3 scatterplot

✓ Published0🌍 Public
HHMIMID AHMED
Last edited Sep 13, 2024
Created on Sep 13, 2024

This example shows a reusable D3 scatterplot component rendering the Iris dataset as animated SVG symbols. Points transition smoothly between positions using `d3.transition`, with the update pattern via `selection.join()` handling enter, update, and exit states. The chart maps species to both colors and symbol shapes using `scaleOrdinal`, while axis scales use `scaleLinear` and `extent`. Although the interval-based cycling between different column pairs is commented out, the code demonstrates a modular scatterPlot function with configurable accessor functions for x, y, category, and symbol values.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes