fix: improve TrendChart readability and interaction#451
Merged
bruno-garcia merged 2 commits intomainfrom Feb 14, 2026
Merged
Conversation
- Disable zoom (scroll wheel + buttons) to prevent accidental zooming - Set x-axis min to span the full search period so labels scale correctly - Use DatetimeFormatter with day/month/year granularity for clean labels - Abbreviate Y-axis values (K/M/B) while keeping exact numbers in tooltip - Increase axis label font size to 13px for readability - Set tooltip Shared=true and Intersect=false to show all series on hover - Always show full date (dd MMM yyyy) in tooltip for clarity Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Blazor TrendChart component to improve readability and hover interaction on the packages trend chart by adjusting axis ranges/formatting, tooltip behavior, and disabling zoom.
Changes:
- Disable chart zoom interactions and hide zoom controls.
- Force the X-axis to span the selected search period and standardize tooltip date formatting.
- Improve readability via larger axis fonts and abbreviated Y-axis tick labels (K/M/B) while keeping full values in the tooltip.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Compute xMin from the earliest data point (or search period, whichever is earlier) so no data gets clipped off the chart - Add null/NaN guard to Y-axis formatter and return locale string for values under 1K, matching the Frameworks chart defensive pattern Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Member
Author
Review comments addressed
All changes in 6b02dd4. |
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.
Summary
Minto span the full search period so ApexCharts auto-selects appropriate label granularity (years for long ranges, months/days for short)Shared = true/Intersect = falseon tooltip to show all series on hoverdd MMM yyyy) in tooltip regardless of time rangeTest plan
/packageswith a single package at "All time" (169 months): X-axis shows yearly labels ("2018", "2019"...), Y-axis shows abbreviated values ("20M", "40M"...)🤖 Generated with Claude Code