mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-28 07:16:44 -06:00
🎨
This commit is contained in:
parent
d002e5ef1d
commit
5350548739
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue