Repository navigation
feat: 网络速率图改用对数纵轴,平时的流量不再被突发压成贴底的直线 - #20
Merged
Merged
Conversation
- 纵轴改为对数,刻度取 1、10、100 KB/MB/GB,最多标 5 个,从顶往下数 - 轴底取窗口里最慢速率所在的档,不低于 1 KB/s:agent 自己上报每个方向约 0.2–0.7 KB/s,空闲的节点落在底上 - 低于 1 KB/s 的值画在底上,提示框仍显示 hub 返回的原值 - `axisTop` 的 1024 进制分支只有网速在用,一并删掉 - 历史请求被拒的注释不再描述 hub 为什么限并发
- 峰值 10–100 MB/s 时轴是 1 KB–100 MB,原来只标 10 KB、1 MB、100 MB,空闲的线落在没有标签的底上;现在六档都标,间距 24 px - 四个资源图的纵轴设 interval 0:recharts 把顶端标签往里推 5 px 后会隐藏下面那个刻度,网格线另算一遍还会多丢,CPU、内存、硬盘原来都缺顶端下面那条网格线 - 注释里的反事实改用 would
提示框先出现在光标右侧,再用 400 ms 的过渡滑回图表内,滑动期间超出页面最多 140 px。五个提示框都关掉过渡
stqfdyr
force-pushed
the
feat/log-rate-axis
branch
from
October 2, 2026 05:03
6c173c0 to
c85bfa5
Compare
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.
网络速率面板的纵轴改为对数,突发与平时的流量在同一张图里都看得清。
axisTop的 1024 进制分支只有网速在用,一并删掉,CPU 的轴不变测试
npm run lint、npm test、npm run build通过;rateAxis加 8 组用例,改成最多 5 个、每档都标、从底往上数时测试各自变红