4. Bar graphs and pie charts: Consider the following data for countries with the
top defense spending in 2014. Plot a bar graph (horizontal) and pie chart with the
given data and label the countries using gtext. For two or more countries having
similar figures, which do you think is a better way to represent the information? For
highly skewed data (one country having a value much higher than the rest), which
is a better way to represent such data?
Germany: $43.9 bn, India: $45.2 bn, Japan: $47.7 bn, France: $53 bn, UK: $61.8
bn, Russia: $70 bn, S. Africa: $80 bn, China: $129.4 bn, and US: $551 bn.2