This example extends the gini index scatter plot to resizable plots. To see the effects of the browser size on the graph, enter to full screen and change the browser's window size.
The data shows income inequality in terms of the gini index for four countries over a period of three decades. The data is collected from our workd in data. The original data is trimed and only four countries gini indices are depicted. In Brazil and Argentina the inequality has decreased during the period, while in Turkey and US it has slightly increased.
Built with blockbuilder.org
forked from curran's block: Stylized Scatter Plot with Color Legend
forked from curran's block: Responding to Resize
forked from bpartopour's block: Gini Index
https://d3js.org/d3.v4.min.js
https://cdnjs.cloudflare.com/ajax/libs/d3-legend/2.24.0/d3-legend.min.js