Build a widget that fetches birth year data from an API and plots it on a histogram.
Requirements:
- Fetch data from an API endpoint (you can mock with
https://dummyjson.com/users which has birthDate).
- Extract the birth year from each user’s
birthDate.
- Count how many people were born in each year.
- Display the counts in a simple histogram (bars with heights corresponding to counts).
- Include axis labels for clarity.
- Focus on functionality over styling.