Basic Scatter Plot
This scatter plot visualizes the relationship between income and health expectancy across countries, with each point representing a nation and colored by region. The x-axis shows GDP per capita (from the World Wealth & Income Database), the y-axis shows health expectancy (from the Global Health Observatory), and point size encodes population. The visualization is built with D3 v4 and rendered as SVG, and it responds to window resize events. The data is loaded from a CSV file and mapped to circle positions, with a log scale for income to handle the wide range of GDP values. Countries are colored according to their region, and the chart includes axes with labels for income and health expectancy. The example demonstrates a straightforward scatter plot for exploring the relationship between economic prosperity and public health across nations, with population encoded in point size and regional distinctions shown by color.
AI-generated descriptionAdded a respond to window resize to this Relation Between Income And Health Expectancy In Different Countries data visualization.
The GDP per capita data are comes from World Wealth & Income Database.
The health data expectancy are gathered from Global Health Observatory data repository.
Some of the code are referenced from curran.
Built with blockbuilder.org