Skip to main content
100%

Line Chart for ICE-7

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

Similar vizzes