Repository navigation
feat(usage): add bar and area chart toggle - #8439
Merged
farion1231 merged 2 commits intoOct 17, 2026
Merged
Conversation
Owner
|
已合并,再次感谢 @funkpopo!默认保持柱形图、面积图作为可记住的选项加回来,正好兼顾了 4.x 的默认观感和 3.x 用户的习惯;两种图共用坐标轴和金额换算,后续维护也省心。感谢您的贡献! |
farion1231
added a commit
that referenced
this pull request
Oct 17, 2026
The bar / area toggle added in #8439 sat on the trend chart header. Move it to the Display section of the usage Settings tab, next to currency, the sidebar Today items and request log columns, and store it with them as usageDisplay.trendChartType in settings.json (bar when unset or unknown). The chart header keeps only the metric switch. The localStorage key is dropped; the toggle was never released, so there is nothing to migrate.
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.
Summary / 概述
用量趋势目前只支持柱形图。本 PR 在趋势图右上方增加左右分段开关,允许用户在柱形图和平滑曲线面积图之间切换。
Related Issue / 关联 Issue
Fixes #8406
Screenshots / 截图
Checklist / 检查清单
pnpm typecheckpasses / 通过 TypeScript 类型检查pnpm format:checkpasses / 通过代码格式检查pnpm test:unit --maxWorkers=4 --minWorkers=1passes / 227 个测试文件、2,973 项测试全部通过pnpm build:rendererpasses / 通过前端构建cargo clippypasses (if Rust code changed) / 不适用:本 PR 未修改 Rust 代码