🌍 Public
Viewing a saved revision (read-only)
4925e654ea744c93a1f9f09e206b9818
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