Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Fork of Line Chart

Public visualization

Viewing a saved revision (read-only)

9edd58959ff3473b8d05ea7b22479205

Fork of Fork of Fork of Line Chart

0 stars0🌍 Public
Sspandhanabadekol
Last edited Mar 27, 2022
Created on Mar 27, 2022

This visualization shows product sales from 2015 to 2022, with time mapped to the x-axis and sales figures on the y-axis. The line chart uses a red stroke to trace the sales trend across years. The code loads CSV data from a gist URL using d3.csv, converts the Year column to Date objects and Sales to numbers, then renders the chart with d3.scaleTime, d3.scaleLinear, d3.axisBottom, d3.axisLeft, and d3.line. The SVG output includes gridlines via tickSize and axis labels, with the margin and inner dimensions calculated for layout.

AI-generated description