Making a Bar Chart
✓ Published1🌍 Public
This horizontal bar chart displays the top 10 countries by total merchandise exports in 2017, using data from the World Trade Organization. The chart sorts countries by export value, with China leading at over two million dollars. The visualization uses D3 v5 with `csv`, `scaleLinear`, and `scaleBand` to map data to SVG rectangles. Axes are rendered with `axisLeft` and `axisBottom`. The data is loaded from `data.csv` and parsed into numeric values before rendering.
AI-generated descriptionThis bar chart shows the Top 10 total merchandise exports in US dollar at current prices (Millions) worldwise. The data comes from the year 2017 in World Trade Organization: Total Merchandise Export 2017.
MIT Licensed