Skip to content

Stats: Charts improvements and fixes#25185

Merged
kean merged 3 commits intotrunkfrom
task/chart-improvements
Feb 2, 2026
Merged

Stats: Charts improvements and fixes#25185
kean merged 3 commits intotrunkfrom
task/chart-improvements

Conversation

@kean
Copy link
Contributor

@kean kean commented Jan 30, 2026

Description

  • Fix CMM-1151: Bar chart doesn't start at the start of the year for yearly view. The xAxisDomain is now set to match the requested time period instead of automatically determining it based on the available data points
  • Improve how the scenarios like request “Last 7 days” with “Yearly” granularity are handled. The design now matches what the web does – it simply puts one bar in the middle of the screen.
  • Improve how x axis labels are rendered. They now always include the start of the period and generally display more labels, so in many cases they directly align with most of the data points.
  • Add a comprehensive set of previews for BarChartView and PieChartView
  • Fix CMM-774: Labels on X axis are slightly misaligned be revoking how labels are added. It now adds all labels based on the time period and granularity but selectively renders them.
  • Update the bar chart to look more like Dotcom: reduce the gradients, reduce corner radius

Screenshots (General)

Before

bar-chart-before

After

Screenshot 2026-01-30 at 1 59 35 PM

Screenshots (iPad)

The alignment problem was especially bad on iPad and is now fixed.

Before

Screenshot 2026-01-30 at 12 18 32 PM

After

Screenshot 2026-01-30 at 1 47 11 PM

@kean kean added this to the 26.7 milestone Jan 30, 2026
@kean kean added the Stats label Jan 30, 2026
@dangermattic
Copy link
Collaborator

1 Warning
⚠️ This PR is larger than 500 lines of changes. Please consider splitting it into smaller PRs for easier and faster reviews.

Generated by 🚫 Danger

@kean kean force-pushed the task/chart-improvements branch from 42290e3 to 433b634 Compare January 30, 2026 18:49
@kean kean requested a review from crazytonyli January 30, 2026 18:50
@kean kean force-pushed the task/chart-improvements branch 2 times, most recently from b30d771 to ef5927d Compare January 30, 2026 19:03
@wpmobilebot
Copy link
Contributor

wpmobilebot commented Jan 30, 2026

🤖 Build Failure Analysis

This build has failures. Claude has analyzed them - check the build annotations for details.

@kean kean force-pushed the task/chart-improvements branch from ef5927d to f7410c9 Compare January 30, 2026 19:30
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, I forgot to remove it. I switched to using granularity.

@kean kean force-pushed the task/chart-improvements branch from f7410c9 to 5b6bd13 Compare February 2, 2026 20:55
@kean kean enabled auto-merge February 2, 2026 21:04
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 2, 2026

@kean kean added this pull request to the merge queue Feb 2, 2026
Merged via the queue into trunk with commit 36d63b0 Feb 2, 2026
27 of 32 checks passed
@kean kean deleted the task/chart-improvements branch February 2, 2026 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments