Implement GraphWidget with inline SVG area chart#279
Draft
Conversation
Co-authored-by: AlexHedley <1573469+AlexHedley@users.noreply.github.com> Agent-Logs-Url: https://github.com/AlexHedley/blashing/sessions/c1190fda-b917-4ea5-894f-fbd50429d958
Copilot
AI
changed the title
[WIP] Update graph widget with Rickshaw integration
Implement GraphWidget with inline SVG area chart
Mar 20, 2026
Owner
|
@copilot produce a screenshot of the Graph in action and add it to the Shared project |
Co-authored-by: AlexHedley <1573469+AlexHedley@users.noreply.github.com> Agent-Logs-Url: https://github.com/AlexHedley/blashing/sessions/f8c17b42-fab6-4621-b30e-994316c03f0e
Author
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.

The
GraphWidgetwas a stub — it had no chart rendering capability and no data parameters. This implements it as a Blazor-native area chart using an inline SVG with smooth cubic bezier curves, matching the Rickshaw-style visualization from the original Smashing graph widget.Widget Parameters Added
Points(IEnumerable<double>) — y-values for the chartCurrent(string?) — current value displayPrefix/Suffix(string?) — format decorators for the current valueSVG Path Generation
GenerateSvgPath()normalizes the data points into a300×200viewBox and produces a filled area path using midpoint cubic bezier control points:The SVG is positioned absolutely over the widget background at 40% opacity (existing SCSS), stretched to fill via
preserveAspectRatio="none".Other
#dc5945(matches$background-colorin SCSS)Pointshas ≥ 2 entries;<h2>only rendered whenCurrentis setCurrentis conditionally omitted when not provided, keeping the widget clean for display-only useBlashing.Shared/wwwroot/images/graph-widget.pngScreenshot
Original prompt
⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.