Skip to content

Roshini Seelamsetty : Fix Blue Square Stats Chart Interactivity and Data Display (Total Org Summary)#5236

Open
roshini1212 wants to merge 1 commit into
developmentfrom
Roshini-Fix-Blue-Square-Stats-Chart-Interactivity-and-Data-Display
Open

Roshini Seelamsetty : Fix Blue Square Stats Chart Interactivity and Data Display (Total Org Summary)#5236
roshini1212 wants to merge 1 commit into
developmentfrom
Roshini-Fix-Blue-Square-Stats-Chart-Interactivity-and-Data-Display

Conversation

@roshini1212
Copy link
Copy Markdown
Contributor

@roshini1212 roshini1212 commented May 7, 2026

Description

Screenshot 2026-05-07 at 11 48 55

Main changes explained:

  • Updated DonutChart.jsx to filter zero-value categories from both chart slices and legend dynamically, with color index kept in sync after filtering
  • Updated DonutChart.jsx to move datalabels outside the arc so small segments (e.g. 1%) remain visible without being suppressed
  • Updated DonutChart.jsx to add text stroke halo on labels for legibility over any slice color in both light and dark mode
  • Updated DonutChart.jsx to fix legend text being invisible in light mode by driving color from the darkMode prop instead of var(--text-primary)
  • Updated DonutChart.module.css to increase canvas size to accommodate external labels and remove hardcoded color declarations that broke light mode

How to test:

  1. Check out branch Roshini-Fix-Blue-Square-Stats-Chart-Interactivity-and-Data-Display
  2. Run npm install and npm start to run locally
  3. Clear site data/cache
  4. Log in as admin user
  5. Go to Dashboard → Total Org Summary → Blue Square Stats chart
  6. Verify that categories with zero values do not appear in the chart slices or the legend
  7. Verify that all segment labels are visible outside the arc, including small slices like Missing Summary (1%) and Missing Hours (6%)
  8. Hover over each slice and verify the tooltip shows the correct label, count, and percentage

Screenshots or videos of changes:

Before:

PR 5236 Before

After:

Screen.Recording.2026-05-07.at.11.44.18.mov
Screenshot 2026-05-07 at 11 57 29 Screenshot 2026-05-07 at 11 57 52

…add hover effect, fix light mode legend text
@netlify
Copy link
Copy Markdown

netlify Bot commented May 7, 2026

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit 757ac62
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/69fcb6ab212f8800087e64b3
😎 Deploy Preview https://deploy-preview-5236--highestgoodnetwork-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 7, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant