🌍 Public
Viewing a saved revision (read-only)
5e839b3bf05e486b8ec3e689cdfc15bb
Pie Chart - Task 9
This pie chart visualizes total sales across six product categories, with each slice representing a category’s contribution to overall revenue. The chart is rendered on an HTML canvas element using Chart.js, which fetches CSV data from a remote GitHub gist. The code parses the file, extracting item categories and total sales values, then applies semi-transparent background colors and a border width to each slice. The chart is non-responsive, with a fixed 400×400 canvas size, and includes a title displayed above the visualization.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.