🌍 Public
Viewing a saved revision (read-only)
3b2484fd54dd474eab13573b9ac793c2
task 9 and 10 question 1
This example shows the top 10 store areas ranked by their total sales as a pie chart. The SVG visualization displays each slice, colored with a scaleOrdinal palette, and labels each slice directly with its sales value. A legend identifies each store area. The code uses D3 v7 to load CSV data, sort it, and create the chart, leveraging d3.pie and d3.arc to generate the slices.
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.