🌍 Public
Viewing a saved revision (read-only)
66bb73fe05c741c7962b9c1aaebc37f4
Fork of Pie chart Distribution
This example shows the shipping amounts for different cities during the Covid era using a bar chart, despite its title mentioning a pie chart. The visualization uses D3 v5 with an SVG rendering approach, loading data from a remote CSV file. The code employs `scaleBand` and `scaleLinear` to map city names and numeric amounts to the chart’s axes, while bars are filled with random HSL colors. Axis labels are rotated for readability, and the chart is drawn within a group element using margin conventions.
AI-generated description