Pie chart
✓ Published0🌍 Public
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed