Skip to main content
Public

Share visualization

Loading preview…

Diamond Line Chart

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Diamond Line Chart

2
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

Comments

Sign in to join the discussion.

MIT Licensed