🌍 Public
Viewing a saved revision (read-only)
166503851e2b40988765b02285f13962
task 9
This pie chart visualizes total sales by item category, using data loaded from a remote CSV file. The chart.js library renders the pie on an HTML canvas element, with labels drawn from the category column and values from the sales column. Six distinct color slices represent each category, and a title displays above the chart. The visualization fetches the Walmart dataset asynchronously, parses the CSV text into rows, and constructs the chart once the data is ready.
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.