Skip to content

fix(dashboard): modern crisp Storage Growth chart (v5.0.3) - #39

Merged
OmarRao merged 1 commit into
mainfrom
fix/storage-chart-modern
Aug 26, 2026
Merged

fix(dashboard): modern crisp Storage Growth chart (v5.0.3)#39
OmarRao merged 1 commit into
mainfrom
fix/storage-chart-modern

Conversation

@OmarRao

@OmarRao OmarRao commented Aug 26, 2026

Copy link
Copy Markdown
Owner

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.svg mockup + 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.

- 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.
@OmarRao
OmarRao merged commit d6a6ce5 into main Aug 26, 2026
3 checks passed
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