Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 Starter - d3.nest()

Public visualization

Viewing a saved revision (read-only)

8a2b5b3a1ae443d398be8ee8e81c66b1

D3 Starter - d3.nest()

0 stars0🌍 Public
Kkaline
Last edited Sep 3, 2023
Created on Sep 2, 2023
Forked from D3 Starter

This example demonstrates how to group and structure an array of car objects using the `d3.nest()` function. It defines four car records with name, manufacturing year, and model, then applies a key function on the `manufactured` property to create hierarchical groups. The resulting nested data structure is logged to the browser console, showing how entries are organized by year. The code uses D3 version 4 and executes entirely in the console without any visual rendering on the page.

AI-generated description

A demonstration of how to start using D3 version 6.