Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

d3NoobV5 Reusable Examples - Line Chart with Grid Lines

Public visualization

Viewing a saved revision (read-only)

059357a912b9442aaba525d5c8b6a84b

d3NoobV5 Reusable Examples - Line Chart with Grid Lines

0 stars1🌍 Public
JJimMaltby
Last edited Jun 7, 2021
Created on Jun 7, 2021

A reusable line chart renders financial closing prices from a CSV file, mapping dates on a time scale and values on a linear scale. The visualization includes labeled axes, a title, and light gray grid lines created with d3.axisBottom and d3.axisLeft using negative tick sizes. Built with d3.v5 and SVG, the code applies the ProD3 pattern for modular chart components, following Malcolm Maclean’s D3 Tips and Tricks and Mike Bostock’s reusable chart principles.

AI-generated description

Simple Line Chart with Grid Lines:

A vanilla HTML implementation of a d3Noob's V5 examples.

Examples Malcolm Maclean's (d3noob) great book "D3 Tips and Tricks v5.x Interactive Data Visualization in a Web Browser" (https://leanpub.com/d3-t-and-t-v5).

It is derived from Mike Bostock's Towards Reusable Charts (https://bost.ocks.org/mike/chart/) as the source of the foundational principles. But uses the ProD3 pattern (Pro D3.js Use D3.js to Create Maintainable, Modular, and Testable Charts by Marcos Iglesias https://www.apress.com/gp/book/9781484252024) as the basis for the charts.

Addtional help from and aknowledgement to: