Skip to main content
100%

Fork of reusable scatter plot

✓ Published2🌍 Public
119h61a05c9@cvsr.ac.in
Last edited Oct 26, 2025
Created on Oct 26, 2025

A reusable scatter plot cycles every two seconds between horsepower and miles-per-gallon axes for a 20-row car dataset. Built with D3 v6, it uses a reusable chart function with getter-setters for width, margin, and accessor functions. The SVG renders axes, labels, and steelblue circles with hover tooltips via appended title elements, while a setInterval reassigns xValue and yValue to flip the variables. The chart removes and recreates the SVG on each update, producing an animated axis-switching visualization.

AI-generated description

Reusable Scatter Plot

This project demonstrates a reusable scatter plot visualization using D3.js that automatically cycles between different variable combinations every 2 seconds.

Features

  • Reusable chart component
  • Dynamic axis switching
  • Responsive design
  • Tooltips on hover
MIT Licensed

Similar vizzes