fix(dashboard): modern crisp Storage Growth chart (v5.0.3) - #39
Merged
Conversation
- Root cause of the blurry/distorted graph: preserveAspectRatio="none" stretched the 380-unit viewBox to the card width, non-uniformly scaling strokes and text. - Rewrote renderStorageChart to render at the container's exact pixel size (1 unit = 1px) for crisp output at any width; smooth Catmull-Rom gradient area curve, light gridlines, MB y-axis labels, dated x-axis ticks; tooltip retained. - Updated dashboard-insights.svg + USERGUIDE 15A; SW cache v8. 105 tests pass, lint + headers clean; verified 1:1 crisp rendering in demo.
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.
Fixes the unprofessional resolution/text on the demo dashboard's Storage Growth graph.
Root cause: the chart used
preserveAspectRatio="none", which stretched a fixed 380-unit viewBox to the card width — non-uniformly scaling the line, dots, and text, so everything looked blurry/squished.Fix: the chart now renders at the container's exact pixel size (1 unit = 1px) for crisp output at any width, redesigned as a smooth gradient area chart (Catmull-Rom bezier) with light gridlines, MB y-axis labels, and dated x-axis ticks. The interactive hover/focus tooltip (session, size, delta mode, date) is retained.
Docs:
dashboard-insights.svgmockup + USERGUIDE 15A updated.QA (demo, reloaded): viewBox width == element width (1:1), smooth curve, 10 points, tooltip working, 0 console errors. 105/105 tests pass, lint + headers clean. No co-authors.