Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Reusable D3 Scatter Plot

Public visualization

Viewing a saved revision (read-only)

47435b1500da4dcbb1412a3e472a1281

Reusable D3 Scatter Plot

0 stars0🌍 Public
Aamalli7433@gmail.com
Last edited Apr 1, 2025
Created on Apr 1, 2025

This animated scatter plot visualizes diamond characteristics, mapping carat weight against price while coloring points by color grade via a reusable D3.js chart function. The visualization uses SVG rendering and a d3.scaleOrdinal color scale with d3.schemeCategory10. Buttons trigger play and pause controls, with points entering and updating through smooth transitions on the d3.axisBottom and d3.axisLeft. The code demonstrates a configurable scatterPlot builder pattern that computes scale domains using d3.extent and animates axis and point changes over one-second durations.

AI-generated description