HW4 Bar Chart
Built with blockbuilder.org
Bar Chart Explanation
- 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.
- The horizontal spatial position is a categorical attribute and it is mapped to the generous countries from the Aid data.
- 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
- 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.
References
- https://bl.ocks.org/d3noob/bdf28027e0ce70bd132edc64f1dd7ea4
- https://bl.ocks.org/mbostock/3883245
- https://bost.ocks.org/mike/bar/
- https://github.com/d3/d3-time-format