Skip to main content
100%

ICE-7 Line Chart

✓ Published0🌍 Public
Ppremsaiv
Last edited Mar 29, 2022
Created on Mar 29, 2022

This example shows car company sales from 2000 to 2015 as a single line chart, using d3.line to connect annual data points along a time-based x-axis and a linear y-axis. The SVG rendering includes styled axis ticks, grid lines, and labels for both axes, with the line path drawn in purple. Data is loaded as CSV from a GitHub gist, parsed with d3.csv, and scales are set with scaleTime and scaleLinear. Axis generators d3.axisBottom and d3.axisLeft create the framed plot, while a title and rotated axis label are added manually.

AI-generated description
MIT Licensed

Similar vizzes