Activity-6 Q-6
✓ Published0🌍 Public
This scatter plot displays the relationship between GDP and life expectancy for ten countries, with each country represented by a distinct symbol. The visualization uses D3.js scales and axes to map GDP on the x-axis and life expectancy on the y-axis, while a shape legend identifies individual countries. The plot loads data from a local CSV file containing GDP and life expectancy values, and renders symbols using d3.symbol with the symbolsFill range. The legend is generated through a custom shapeLegend function that iterates over the country domain.
AI-generated descriptionMIT Licensed