Making a Bar Chart
✓ Published0🌍 Public
This example visualizes the top 10 countries by total merchandise exports in 2017, using a horizontal bar chart with steel-blue rectangles. It imports data from a local CSV file and renders it as SVG via D3 v5. The code uses `d3.scaleLinear` and `d3.scaleBand` for axes and positioning, along with `d3.axisLeft` and `d3.axisBottom` to label the chart. Data comes from the World Trade Organization’s 2017 statistics.
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