Yan fix piechart visualization#4928
Merged
one-community merged 18 commits intoMay 14, 2026
Merged
Conversation
✅ Deploy Preview for highestgoodnetwork-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
yany960
pushed a commit
that referenced
this pull request
Mar 9, 2026
- Add adaptive gap calculation based on screen size and data count - Add dynamic text offset for different screen sizes - Limit number of labels shown on small screens (6 on mobile, 8 on tablet) - Simplify label text on smaller screens for better readability - Ensure layout recalculates when window size changes Fixes PR #4928 responsive text overlap issue
- Add adaptive gap calculation based on screen size and data count - Add dynamic text offset for different screen sizes - Limit number of labels shown on small screens (6 on mobile, 8 on tablet) - Simplify label text on smaller screens for better readability - Ensure layout recalculates when window size changes
- Add iterative dodgeY with backward pass to prevent overlaps - Increase base gap from 16/20 to 20/24 pixels - Expand vertical bounds from R+60 to R+100 for more space - Add third pass to ensure labels stay within bounds
604e6a2 to
b95d1f8
Compare
- Add automatic aggregation of small values into 'Others' category - Implement smart label distribution from center outward - Add adaptive gap calculation based on available space - Improve responsive design with dynamic container heights - Simplify text display for smaller screens
Anusha-Gali
suggested changes
Mar 13, 2026
cf46e1b to
8654aa6
Compare
- Move responsive styles from CSS to inline JSX styles - ProjectPieChart: dynamic button-container positioning and scale based on windowSize - PieChartByProject: inline responsive styles for title, description, labels, and text - AGGRESSIVELY reduce pie chart size on mobile: - <=400px: outerRadius 90px (was 135px) - <=576px: outerRadius 105px (was 140px) - <=640px: outerRadius 120px - Reduce container dimensions and text offset for mobile - Reduce parent container height: 22rem/26rem/32rem based on screen size - Ensure proper display on iPhone and other mobile devices
ea9f9be to
587daca
Compare
587daca to
957afa6
Compare
- Use inline styles in JSX instead of CSS media queries - ProjectPieChart.jsx: dynamic circleSize, container dimensions, textOffset, fontSize - ProjectPieChart.jsx: inline styles for button container positioning - PieChartByProject.jsx: dynamic parent container height based on screen width - PieChartByProject.jsx: add missing isMobile, isTablet, isSmallMobile variable definitions - IMPROVED: Reduce pie size more aggressively on mobile (outerRadius 75px/85px) - IMPROVED: Simplify center text to 'All' + hours only on small screens - IMPROVED: Smaller switch button scale (0.55/0.65) on mobile - IMPROVED: Show only hours (e.g., '43.2h') in labels on small screens - IMPROVED: Reduce text offset further (10px/20px) to prevent cutoff - BUGFIX: Pass windowSize parameter to renderActiveShape function - BUGFIX: Fix button position to always center (top: 50%) instead of varying percentages - ENHANCEMENT: Center text changes between 'All'/'Selected' based on showAllValues state - ENHANCEMENT: Button scales down further when item selected (0.45/0.55 vs 0.55/0.65) - Keep CSS files identical to development branch (no changes) - Ensures mobile display on iPhone and other devices without violating CSS Module policy
957afa6 to
7b220e2
Compare
ManojPuttaswamy
requested changes
Mar 21, 2026
| }, [mergedProjectUsersArray,showMembers]) | ||
|
|
||
| // Detect screen size for responsive styling | ||
| const isMobile = windowSize.width <= 576; |
Contributor
There was a problem hiding this comment.
CSS media queries should handle responsiveness instead.
|
Anusha-Gali
suggested changes
Apr 17, 2026
Member
|
Thank you all, merging! |
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
Video: https://www.loom.com/share/c177e2f6c87c4005aad39dff9b99460f?sid=1a103e3c-dc92-4e62-9c2f-3b8c52f5305e

Video: https://drive.google.com/file/d/1Yl4CFf2yjRINe8chVIkw98kZsPPvFvWv/view
Fixes # (Priority: Medium)
Related PRS (if any):
#4031
Main changes explained:
…
How to test:
Screenshots or videos of changes: