Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

AVN - Pie Chart

Public visualization

Viewing a saved revision (read-only)

db4eb2c8c73e496daf2fbbfd9bb99c93

AVN - Pie Chart

0 stars0🌍 Public
Aavnreddy95
Last edited Jul 3, 2022
Created on Jul 3, 2022
Forked from HTML Starter

This example shows the number of viewers in millions for various sports using a pie chart and an accompanying legend. The data is loaded from a CSV file via `d3.csv`, and each section’s value label and legend entry are formatted with `d3.format`. The pie layout is generated using `d3.pie`, with arcs drawn via `d3.arc` into an SVG canvas, while `d3.scaleOrdinal` maps categorical colors to the slices. React is used as the framework, though rendering is handled directly through D3’s DOM manipulation.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.