Roshini/volunteer hours distribution chart visualization fix#4913
Open
roshini1212 wants to merge 3 commits intodevelopmentfrom
Open
Roshini/volunteer hours distribution chart visualization fix#4913roshini1212 wants to merge 3 commits intodevelopmentfrom
roshini1212 wants to merge 3 commits intodevelopmentfrom
Conversation
added 2 commits
February 26, 2026 14:02
Changes: - Volunteer counts + % slices/legend - Center: Leaderboard total hours ✅ - Tooltips: 'Volunteers X, % Y' - Buckets: 40-49 → 50+ - Tests: 100% coverage + PropTypes - UX: formatRangeLabel(), guards
✅ Deploy Preview for highestgoodnetwork-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
…chart-visualization-fix
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Description
Fixes Yagna PRIORITY HIGH: Volunteer Hours Distribution Chart Shows Incorrect Totals and Misleading Visualization
Summary: Redesigned pie chart to show volunteer counts per hour range (not misleading hour values). Fixed center total, 40+/50+ buckets, tooltips, and percentage labels.
Main changes explained:
formatRangeLabel(),HoursWorkListw/ counts,userDataw/ percentagestotalHoursData.current(Leaderboard),tooltipType="hoursDistribution""X volunteers (Y%) logged Z+ hours..."How to test:
git checkout roshini/volunteer-hours-distribution-chart-visualization-fixin frontendnpm run start:local6pm test✅Screenshots:
BEFORE:

Screen.Recording.2026-02-26.at.15.12.04.mov
AFTER:

After.mov