Skip to main content
100%

Untitled

✓ Published0🌍 Public
SSamir Nandardhane
Last edited May 16, 2023
Created on May 16, 2023
Forked from D3 Starter

This example demonstrates how to build an interactive pie chart using D3 version 6. The chart displays the distribution of bike ride types (classic or electric) within a selected year (2021 or 2022) and user type (casual or member), with data parsed from a hardcoded CSV string via `d3.csvParse`. Users select values from two dropdown menus, triggering the `updateChart` function to filter the data and redraw the SVG using `d3.pie` and `d3.arc`, with text labels placed using `arc.centroid`.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes