🌍 Public
Viewing a saved revision (read-only)
7a38ff339b874ce4a08b5932453b6b49
Assignment 2 Question 1
An interactive pie chart displays total sales by item category, using data fetched from a remote text file. The visualization is built with Chart.js on an HTML Canvas element, presenting twenty-two categories with distinct colors and a bottom legend. The code calculates and displays percentage values for each slice via the datalabels plugin, summing sales figures parsed from CSV-formatted rows. The chart summarizes category-level sales performance in a single, static view.
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.