Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

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

Public visualization

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

0 stars1๐ŸŒ Public
JJimMaltby
Last edited Dec 22, 2021
Created on Nov 24, 2021

This example demonstrates a nested multi-line chart with two drop-down menus to filter fruit type and year. It uses D3.js v5 in a vanilla HTML implementation, following the ProD3 reusable chart pattern. The chart displays monthly sales data for strawberries, grapes, and blueberries across multiple years, with lines colored by fruit type using d3.scaleOrdinal. Animation and SVG rendering show smooth transitions when filtering the nested dataset.

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:

Comments

Sign in to join the discussion.

MIT Licensed