Skip to main content
100%

Fork of Pie Chart

✓ Published0🌍 Public
Ddaniel
Last edited Dec 1, 2023
Created on Dec 1, 2023
Forked from Pie Chart

This example visualizes the basic subscription cost of Netflix in different countries using a pie chart, with a legend listing each country and its corresponding price. The chart is rendered as SVG using D3 v5, with the pie layout (`d3.pie`), arc generator (`d3.arc`), and ordinal color scale (`d3.scaleOrdinal` with `schemeCategory10`). Data is loaded asynchronously from a CSV file via `d3.csv` and sorted descending by cost before rendering. The visualization includes mouse-over logging of each segment's value and uses custom number formatting to display dollar amounts.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes