[PR #1731] [CLOSED] web: the unlabelled sparklines were scaled by their own noise #3637

Closed
opened 2026-11-07 15:29:43 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1731
Author: @phoenixclyde
Created: 10/9/2026
Status: ❌ Closed

Base: main ← Head: web-sparkline-axis-floor


📝 Commits (1)

  • 48cd120 web: the unlabelled sparklines were scaled by their own noise

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 serve/web/app.js (+1 -1)

📄 Description

spark(id, values, max) sets the axis top to max(|max|, the series' own
maximum, 1e-9). gpu_util, temperature, cpu, vram and power pass an
explicit maximum, but the pcie, tok/s, prefill and disk cards do not, so
those axes zoom onto whatever the series happens to hold.

An idle amdgpu pcie counter reads 0.01-0.02 MB/s (50 packets x 256 B per
second), and that becomes a full-amplitude square wave in the Monitor
while the tile's own text says 0.0 MB/s. Measured in the live DOM: the
pcie line's y values are only {4.0, 30.0}, i.e. the baseline and the top.

A floor of 1 only ever lowers the axis - the series maximum still wins -
so a real burst keeps its scale, and the cards that pass a maximum are
untouched.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/1731 **Author:** [@phoenixclyde](https://github.com/phoenixclyde) **Created:** 10/9/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `web-sparkline-axis-floor` --- ### 📝 Commits (1) - [`48cd120`](https://github.com/Niko1221/Strata/commit/48cd120da6218d4841cdb83d2aebaf94ec14feb3) web: the unlabelled sparklines were scaled by their own noise ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `serve/web/app.js` (+1 -1) </details> ### 📄 Description spark(id, values, max) sets the axis top to max(|max|, the series' own maximum, 1e-9). gpu_util, temperature, cpu, vram and power pass an explicit maximum, but the pcie, tok/s, prefill and disk cards do not, so those axes zoom onto whatever the series happens to hold. An idle amdgpu pcie counter reads 0.01-0.02 MB/s (50 packets x 256 B per second), and that becomes a full-amplitude square wave in the Monitor while the tile's own text says 0.0 MB/s. Measured in the live DOM: the pcie line's y values are only {4.0, 30.0}, i.e. the baseline and the top. A floor of 1 only ever lowers the axis - the series maximum still wins - so a real burst keeps its scale, and the cards that pass a maximum are untouched. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:29:43 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3637
No description provided.