Skip to main content
100%

V5 Reusable Examples - Line Types Chart nested data series 1

✓ Published0🌍 Public
JJimMaltby
Last edited Oct 31, 2021
Created on Oct 30, 2021

This visualization demonstrates how to build a reusable line chart using D3 v5 with nested data series. It plots monthly sales data from a CSV file, displaying sales figures across the months of January through June. The chart uses a time scale for the x-axis and a linear scale for the y-axis, with a steelblue line representing the data. The code follows the ProD3 pattern for reusable chart modules, incorporating margins, axes, and SVG rendering.

AI-generated description

An exploration of nesting data. 1 - simple line chart.

Using the tutorial and series of charts described here: https://amber.rbind.io/2017/05/02/nesting/

d3.js ver: v5.

D3 pattern used:

Addtional help from and aknowledgement to:

MIT Licensed

Similar vizzes