Making a Bar Chart
✓ Published1🌍 Public
This example visualizes the top 10 countries by total merchandise exports in 2017, using data from the World Trade Organization. It shows a horizontal bar chart ordered by export value, with green bars scaled linearly from 4e11 to 2.3e12. The chart uses d3.csv to load the data, d3.scaleLinear and d3.scaleBand for axes, and d3.axisLeft and d3.axisBottom to render the SVG axes and rectangles.
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