Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Map

Public visualization

Viewing a saved revision (read-only)

23163636ea4f458082ee09c3c5bb9933

Fork of Map

0 stars0🌍 Public
Ddanish-nix
Last edited May 15, 2021
Created on May 15, 2021

This interactive scatter plot demonstrates dynamic data binding with D3 v5, visualizing a bowl of fruit that changes over time—apples disappear, and one transforms into a lemon. The visualization uses D3’s selection joins (`selection.data`, `enter`, `merge`, `exit`) to update SVG circles and text elements, with `scaleOrdinal` mapping fruit types to colors and radii. Animated transitions occur via `setTimeout`, and clicking a fruit logs its ID. The data is synthetic, generated locally with `range` and object literals.

AI-generated description

This scatter plot shows data about cars, from UCI Machine Learning Repository: Auto MPG Data Set.