Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Diamond Scatter Plot

Public visualization

Viewing a saved revision (read-only)

36dbb0ed587647cdad8143215f416275

Diamond Scatter Plot

0 stars1🌍 Public
Aamalli7433@gmail.com
Last edited Apr 2, 2025
Created on Apr 2, 2025

A scatter plot displays diamond price in US dollars on the x-axis against carat weight on the y-axis, with each dot colored by clarity grade and revealing a tooltip on hover. Built with D3 v7, the SVG chart uses `d3.scaleOrdinal` with `d3.schemeTableau10` for categorical clarity colors, `d3.axisBottom` and `d3.axisLeft` for labeled axes, and rendered grid lines. The visualization relies on a small hardcoded sample dataset of ten diamonds, with interactive hover states increasing dot radius and opacity.

AI-generated description