Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Reusable Scatter plot Activity7.1

Public visualization

Fork of Reusable Scatter plot Activity7.1

0 stars0🌍 Public
Ssonia.af88@gmail.com
Last edited Nov 1, 2024
Created on Nov 1, 2024

This example demonstrates an interactive scatter plot of the Iris dataset, cycling through different feature combinations on the x-axis every few seconds. The plot displays petal width against sepal length, with points colored by species (setosa, versicolor, virginica) and varying ellipse shapes based on sepal dimensions. It uses D3.js v6 with reusable chart components via `scatterPlot`, `scaleLinear`, `axisLeft`, and `axisBottom` to render SVG circles and axes. The animation switches x-axis features using `setInterval`, while custom legend, title, and axis labels are appended dynamically.

AI-generated description

A demonstration of reusable scatter plot.

Comments

Sign in to join the discussion.

MIT Licensed