Animated Scatterplot with Menus
This animated scatterplot displays the Iris dataset, plotting sepal length against petal width with points colored by species. The visualization uses D3.js to render circles that transition smoothly between positions when the x-axis mapping changes between four different measurements via a menu. The chart includes labeled axes, a title, and sequential animations that delay each point's movement for a staggered effect. The reusable chart component follows Mike Bostock's conventions, allowing configurable accessors, radii, and margins with default values.
AI-generated descriptionA reusable D3 scatterplot built following the convention layed out in Mike Bostock's Towards Reusable Charts
Allows specification of a number of values including the size of the points, the accessor functions for x and y values, the symbols to be used for points, the chart title, and axes labels. When any of the options are not set (except for the data value) default values are supplied.
Axis ranges by default extend 10% above and below the smallest and largest data points. This prevents points from running into the axes which I think looks bad. There is currently no defined method to alter this behavior.