From 5275947f19bf9edc5864f79d99b9fef23f51ccba Mon Sep 17 00:00:00 2001 From: Ed-k Date: Sat, 20 Sep 2025 15:12:06 -0400 Subject: [PATCH] fix: Set result chart burst Y axis max after adding PB line (@Ed-k) (#6980) ### Description The result chart burst axis maximum Y value needs to be updated after adding the personal best line to keep the chart scale the same as the wpm and raw lines. ### Checks - [ ] Adding quotes? - [ ] Make sure to include translations for the quotes in the description (or another comment) so we can verify their content. - [ ] Adding a language? - Make sure to follow the [languages documentation](https://github.com/monkeytypegame/monkeytype/blob/master/docs/LANGUAGES.md) - [ ] Add language to `packages/schemas/src/languages.ts` - [ ] Add language to exactly one group in `frontend/src/ts/constants/languages.ts` - [ ] Add language json file to `frontend/static/languages` - [ ] Adding a theme? - Make sure to follow the [themes documentation](https://github.com/monkeytypegame/monkeytype/blob/master/docs/THEMES.md) - [ ] Add theme to `packages/schemas/src/themes.ts` - [ ] Add theme to `frontend/src/ts/constants/themes.ts` - [ ] Add theme css file to `frontend/static/themes` - [ ] Add some screenshot of the theme, especially with different test settings (colorful, flip colors) to your pull request - [ ] Adding a layout? - [ ] Make sure to follow the [layouts documentation](https://github.com/monkeytypegame/monkeytype/blob/master/docs/LAYOUTS.md) - [ ] Add layout to `packages/schemas/src/layouts.ts` - [ ] Add layout json file to `frontend/static/layouts` - [ ] Adding a font? - Make sure to follow the [themes documentation](https://github.com/monkeytypegame/monkeytype/blob/master/docs/FONTS.md) - [ ] Add font file to `frontend/static/webfonts` - [ ] Add font to `packages/schemas/src/fonts.ts` - [ ] Add font to `frontend/src/ts/constants/fonts.ts` - [ ] Check if any open issues are related to this PR; if so, be sure to tag them below. - [x] Make sure the PR title follows the Conventional Commits standard. (https://www.conventionalcommits.org for more info) - [x] Make sure to include your GitHub username prefixed with @ inside parentheses at the end of the PR title. Closes # #6979 --- frontend/src/ts/test/result.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/ts/test/result.ts b/frontend/src/ts/test/result.ts index 99ba676e231c..75c68380bf2b 100644 --- a/frontend/src/ts/test/result.ts +++ b/frontend/src/ts/test/result.ts @@ -352,6 +352,7 @@ export async function updateGraphPBLine(): Promise { ChartController.result.getScale("wpm").max = maxChartVal; ChartController.result.getScale("raw").max = maxChartVal; + ChartController.result.getScale("burst").max = maxChartVal; } function updateWpmAndAcc(): void {