Skip to main content
100%

Reusable Scatter plot

✓ Published0🌍 Public
RRamyapriyaPutta
Last edited Mar 27, 2022
Created on Mar 27, 2022

This reusable scatter plot presents the Iris dataset, mapping petal and sepal measurements onto a dynamic SVG visualization. The code employs D3.js v6 APIs such as `scaleLinear`, `axisLeft`, `axisBottom`, and `csv` to parse data and render animated circles. A `setInterval` cycles through different measurement columns every two seconds, updating the x-axis mapping while colors distinguish iris species (green, blue, red). The chart leverages a custom `scatterPlot` module with a fluent interface for width, height, margins, and radius, encapsulating the reusable chart pattern.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes