Skip to main content
100%

V5 Reusable Examples - Nested data, Chart (line) series DDM - Example 5.1

✓ Published1🌍 Public
JJimMaltby
Last edited Nov 11, 2021
Created on Nov 11, 2021

This example demonstrates a nested multi-line chart that visualizes monthly fruit sales across two years, with a drop-down menu filtering the displayed data. The chart uses D3.js v5 to load CSV data, nest it by fruit type and year, and render separate line series with an ordinal color scale. The visualization implements a reusable chart pattern based on Mike Bostock's principles, using SVG for rendering and d3.scaleTime, d3.scaleLinear, and d3.axisBottom for scales and axes.

AI-generated description

An exploration of nesting data. Nested multi-line chart with Drop Down Menu to filter data.

Using the tutorial and series of charts described here:

https://amber.rbind.io/2017/05/02/nesting/

D3.js version: v5.

D3 pattern used:

Addtional help from and aknowledgement to:

MIT Licensed

Similar vizzes