Scatter Plot of Happiness and Y axis attributes
✓ Published2🌍 Public
This scatter plot visualizes the relationship between happiness scores and several country-level attributes, including economy, social support, generosity, freedom, and perceived corruption, using data from the World Happiness Report. An interactive dropdown menu allows the viewer to switch the y-axis attribute, updating the visualization dynamically. The plot is rendered as an SVG using React and D3 v5, with `d3.scaleLinear` handling axis scaling and `d3.extent` and `d3.format` for domain and tick formatting. Axis components and data marks (circles) are implemented as reusable React components, with tooltips showing the happiness score on hover.
AI-generated descriptionA scatter plot of The Iris Dataset.
MIT Licensed