Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Pie chart Distribution

Public visualization

Fork of Pie chart Distribution

0 stars0🌍 Public
VVineela Reddy
Last edited Apr 25, 2024
Created on Apr 25, 2024

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

Comments

Sign in to join the discussion.

MIT Licensed