Making a Bar Chart
✓ Published1🌍 Public
This bar chart visualizes the top 10 countries by total merchandise exports in 2017, sourced from the World Trade Organization. It shows a horizontal bar layout where longer bars represent higher export values, led by China. The visualization is rendered using D3 v5, with index.js leveraging D3 APIs such as `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to construct the SVG chart. The data is loaded from a CSV file, with export values multiplied by 1000, and bars are styled with a steelblue fill.
AI-generated descriptionThis bar chart shows the Top 10 total merchandise export worldwise. The data comes from the year 2017 in World Trade Organization: Total Merchandise Export 2017.
MIT Licensed