Skip to main content
100%

Your Project

✓ Published0🌍 Public
Ssrividyap03
Last edited May 15, 2023
Created on May 15, 2023
Forked from React Starter

This interactive bar chart visualizes the depression rate (Allages) for the top 10 happiest countries in a selected year, allowing users to filter by year via a dropdown menu. The chart updates dynamically, sorting countries by Happiness Score in descending order and displaying a title reflecting the chosen year. Built with React and D3.js, it uses `d3.csv` to load data, `d3.scaleBand` and `d3.scaleLinear` for axes, and SVG rectangles for bars. The code also employs `d3.axisBottom` and `d3.axisLeft` for rendering the axes.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes