1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-11-25 15:46:39 +09:00
This commit is contained in:
syuilo 2022-12-28 11:32:10 +09:00
parent d002e5ef1d
commit 5350548739

View File

@ -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;