fix(frontend): チャートのラベルが消えている問題を修正 (#13416)

* fix(frontend): チャートのラベルが消えている問題を修正

* Update CHANGELOG.md
This commit is contained in:
zyoshoka 2024-02-20 14:00:57 +09:00 committed by GitHub
parent ddd7b26f1c
commit 39c4e3a4f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -240,7 +240,7 @@ const render = () => {
},
external: externalTooltipHandler,
callbacks: {
label: (item) => chartData?.bytes ? bytes(item.parsed.y * 1000, 1) : item.parsed.y.toString(),
label: (item) => `${item.dataset.label}: ${chartData?.bytes ? bytes(item.parsed.y * 1000, 1) : item.parsed.y.toString()}`,
},
},
zoom: props.detailed ? {