Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Line Chart for ICE-7

Public visualization

Line Chart for ICE-7

0 stars5🌍 Public
NNagasharan Sai Nandyala
Last edited Apr 1, 2025
Created on Mar 30, 2025
Forked from A8-Edge-Bundling

This line chart visualizes the relationship between weight (kg) and price (USD) for items in the ICE-7 dataset, sourced from a CSV file. The code uses D3.js v7 to load and parse the data, then sorts it by weight before plotting a continuous line with `d3.line()`. Linear scales `d3.scaleLinear` map weight to the x-axis and price to the y-axis, with axis labels added via SVG text elements. The chart renders as an SVG element with steel blue strokes, displaying how price changes across the sorted weight range.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed