Skip to main content
100%

Reusable D3 Scatter Plot

✓ Published1🌍 Public
MMatheesha Yapa
Last edited Jul 2, 2023
Created on Jun 28, 2023
Forked from D3 Scatter Plot

This example demonstrates a reusable D3 scatter plot that visualizes the Iris dataset, with points colored and shaped by species. The plot cycles through different x-axis variables every two seconds, animating transitions between sepal and petal measurements. Built with D3 v7, it uses `scaleLinear`, `scaleOrdinal`, `symbol`, `axisLeft`, and `axisBottom` APIs to render SVG marks and axes. The visualization is fully responsive, filling the browser window, and updates dynamically by re-invoking the custom `scatterPlot` function with new data accessors.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes