Skip to main content
100%

Diamond Scatter Plot

✓ Published1🌍 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
MIT Licensed

Similar vizzes