Skip to content

Fix drilldown prevalence by month sorting and trellis chart sorting in data characterization - #3024

Merged
maggie-li-yd merged 3 commits into
developfrom
maggie-li-yd/3023-dc-charts-sorting
Aug 4, 2026
Merged

Fix drilldown prevalence by month sorting and trellis chart sorting in data characterization#3024
maggie-li-yd merged 3 commits into
developfrom
maggie-li-yd/3023-dc-charts-sorting

Conversation

@maggie-li-yd

@maggie-li-yd maggie-li-yd commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator
  1. Fix data sorting in drilldown prevalence by month charts:
    Note: Tim advised not to fill missing months with a prevalence of 0.
Screenshot 2026-07-31 at 11 06 46 AM
  1. Make trellis charts sort by numbers first before alphabets in titles

Before:
Screenshot 2026-07-31 at 11 01 38 AM

After:
Screenshot 2026-07-31 at 11 02 38 AM

Merge Checklist

Please cross check this list if additions / modifications needs to be done on top of your core changes and tick them off. Reviewer can as well glance through and help the developer if something is missed out.

  • Automated Tests (Jasmine integration tests, Unit tests, and/or Performance tests)
  • Updated Manual tests / Demo Config
  • Documentation (Application guide, Admin guide, Markdown, Readme and/or Wiki)
  • Verified that local development environment is working with latest changes (integrated with latest develop branch)
  • following best practices in code review doc

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates chart ordering logic in the Portal’s drilldown chart components to improve readability and ensure categories/time-series appear in the expected order.

Changes:

  • Sort trellis chart titles using natural (numeric-aware) ordering instead of pure lexicographic ordering.
  • Sort “prevalence by month” chart X-axis data by XCALENDARMONTH prior to formatting month labels.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
plugins/ui/apps/portal/src/components/Charts/Common/Drilldown/DrilldownTrellisChart/DrilldownTrellisChart.tsx Switch trellis key sorting to numeric-aware collation for more intuitive panel ordering.
plugins/ui/apps/portal/src/components/Charts/Common/Drilldown/DrilldownPrevalenceByMonthChart/DrilldownPrevalenceByMonthChart.tsx Introduce sorting by XCALENDARMONTH before generating X-axis labels for the month drilldown chart.

@maggie-li-yd maggie-li-yd linked an issue Aug 3, 2026 that may be closed by this pull request
@maggie-li-yd
maggie-li-yd enabled auto-merge August 4, 2026 01:48
@maggie-li-yd
maggie-li-yd added this pull request to the merge queue Aug 4, 2026
Merged via the queue into develop with commit 847074d Aug 4, 2026
70 of 71 checks passed
@maggie-li-yd
maggie-li-yd deleted the maggie-li-yd/3023-dc-charts-sorting branch August 4, 2026 04:36
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.

DC - Drilldown Prevalence charts are not sorted by date Fix sub chart sorting in data characterization's trellis chart

3 participants