Fork of Hello VizHub
✓ Published0🌍 Public
This fork of Hello VizHub displays a chocolate sales pie chart, showing the distribution of chocolate brand sales through color-coded slices with a legend. The visualization loads CSV data from a GitHub gist, processes it with D3.js v7’s `d3.rollup` and `d3.pie`, and renders slices using `d3.arc`. A color scale with `d3.scaleOrdinal` assigns distinct colors to each brand. The code also includes a separate reusable `pieChart.js` module using `d3-shape` and `d3-scale-chromatic` for chart generation, with an SVG-based output.
AI-generated descriptionChocolate Sales Pie Chart
This visualization shows the distribution of chocolate brand sales using a D3.js pie chart.
- Dataset: Chocolate brand sales
- Visualized with: D3.js v7
- Legend and color-coded slices help distinguish each brand's contribution
MIT Licensed