Skip to main content
100%

Pie chart

✓ Published0🌍 Public
NNandini Maddula
Last edited Mar 28, 2024
Created on Mar 27, 2024

This pie chart visualizes the distribution of wine varieties, highlighting the share of five selected types—Cabernet Sauvignon, Pinot Noir, Chardonnay, Sauvignon Blanc, and Malbec—based on their counts in a CSV dataset. The chart uses D3.js v7’s pie generator and arc generator to compute and render the slices, with each slice’s angle proportional to its count. A legend, built with HTML divs, maps colors to variety names. The data is fetched and parsed from a remote CSV file using `d3.csvParse`, and the visualization is rendered as SVG elements.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes