diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2022-12-28 11:32:10 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2022-12-28 11:32:10 +0900 |
| commit | 5350548739c8cc83bf7c5eb8baecb75e0f2c2c11 (patch) | |
| tree | 62d952f412e544c5fa0da9ec9c2fba8186747f73 | |
| parent | 13.0.0-beta.3 (diff) | |
| download | misskey-5350548739c8cc83bf7c5eb8baecb75e0f2c2c11.tar.gz misskey-5350548739c8cc83bf7c5eb8baecb75e0f2c2c11.tar.bz2 misskey-5350548739c8cc83bf7c5eb8baecb75e0f2c2c11.zip | |
:art:
| -rw-r--r-- | packages/frontend/src/components/MkActiveUsersHeatmap.vue | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/frontend/src/components/MkActiveUsersHeatmap.vue b/packages/frontend/src/components/MkActiveUsersHeatmap.vue index 02b2eeeb36..9204c7312a 100644 --- a/packages/frontend/src/components/MkActiveUsersHeatmap.vue +++ b/packages/frontend/src/components/MkActiveUsersHeatmap.vue @@ -114,9 +114,10 @@ async function renderChart() { // フォントカラー Chart.defaults.color = getComputedStyle(document.documentElement).getPropertyValue('--fg'); - const color = '#3498db'; + const color = defaultStore.state.darkMode ? '#b4e900' : '#86b300'; - const max = Math.max(...raw.readWrite); + // 視覚上の分かりやすさのため上から最も大きい3つの値の平均を最大値とする + const max = raw.readWrite.slice().sort((a, b) => b - a).slice(0, 3).reduce((a, b) => a + b, 0) / 3; const marginEachCell = 4; |