Skip to main content
100%

Simple Line Graph v5

✓ Published0🌍 Public
Dd3noob
Last edited Nov 29, 2019
Created on Nov 23, 2019

A simple line graph displays daily closing prices over roughly six weeks, extracted from a CSV file with date and value columns. The visualization uses an SVG path rendered through D3 v5's `d3.line()` generator, with a time scale for the x-axis and a linear scale for the y-axis. Margins are set explicitly, and both axes are drawn using `d3.axisBottom()` and `d3.axisLeft()`. The date strings are parsed with `d3.timeParse()`, and the line is styled with a steelblue stroke.

AI-generated description

This is a simple line graph written with d3.js v5 and based on @mbostock's example here.

This simple graph is designed to be used as a starting point for further development as part of documenting an update to the book D3 Tips and Tricks to version 5 of d3.js.

mit Licensed

Similar vizzes