A4
✓ Published0🌍 Public
UUdochukwuNweke
Last edited Feb 7, 2018
Created on Feb 7, 2018
This bar chart displays the total government aid donations in USD for nine countries, revealing Germany as the top donor followed closely by the United States. The visualization uses SVG rectangles rendered with D3.js v4, encoding donation amounts through vertical spatial position on a linear scale while countries are positioned along a categorical horizontal band scale. The code loads data from a CSV file, applies d3.scaleBand and d3.scaleLinear for axes, and uses d3.axisBottom and d3.axisLeft to generate the chart’s labeled axes.
AI-generated descriptionBuilt with blockbuilder.org
Bar Chart Explanation </br>
- The marks used for the data: The bar chart encodes two attributes using line mark
- The channels are vertical spatial position and the horizontal spatial position. The vertical spatial position is a quantitative attribute and it is mapped to the amount donated by each country. </br>
- The horizontal spatial position is a categorical attribute and it is mapped to the generous countries from the Aid data. </br>
- The bar chart shows the 9 most generous countries from the Government Aid Data. The vertical axis shows the total sum of donation made by each country all in USD and the horizontal axis shows the year the donation was made.
Interesting Insights </br>
- The bar chart shows Germany as the most generous country. This is because germany donated more than the other countries. This is kind of surprising to me because I thought United States gave more than the rest countires by observation.
- From the chart, the total amount donated by Germany and United Statesis are more than the sum of what the remaining countries donated. </br>
References </br>
mit Licensed