Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Diamond Line Chart

Public visualization

Viewing a saved revision (read-only)

37e0d67d119741158279376c8bb43b23

Diamond Line Chart

0 stars2🌍 Public
Aamalli7433@gmail.com
Last edited Apr 1, 2025
Created on Apr 1, 2025
Forked from Fork of Line Chart

This line chart shows the relationship between diamond carat weight and depth percentage, using a filtered subset of a diamonds dataset (every fifth point) loaded via `d3.csv`. The SVG visualization maps carat weight to the x-axis and depth percentage to a fixed 50–80 range on the y-axis, with a blue `d3.line` path connecting sorted data points. Gridlines from `d3.axisLeft` provide reference, while axis labels and a title are rendered as SVG text. The chart uses `d3.scaleLinear` for both scales and styled SVG elements for rendering.

AI-generated description