Fork of Pie chart Distribution
✓ Published0🌍 Public
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 descriptionMIT Licensed