refactor: chartjs-plugin-gradientが二重でpluginに登録されていたのを修正

This commit is contained in:
yukineko 2024-01-07 02:53:36 +09:00
parent a9cb6623c5
commit 9b669b6dc6
No known key found for this signature in database
GPG key ID: E5BACB72109B7B90

View file

@ -21,7 +21,6 @@ SPDX-License-Identifier: AGPL-3.0-only
*/
import { onMounted, ref, shallowRef, watch, PropType } from 'vue';
import { Chart } from 'chart.js';
import gradient from 'chartjs-plugin-gradient';
import { misskeyApiGet } from '@/scripts/misskey-api.js';
import { defaultStore } from '@/store.js';
import { useChartTooltip } from '@/scripts/use-chart-tooltip.js';
@ -273,7 +272,7 @@ const render = () => {
} : undefined,
},
},
plugins: [gradient, chartVLine(vLineColor), ...(props.detailed && legendEl.value ? [chartLegend(legendEl.value)] : [])],
plugins: [chartVLine(vLineColor), ...(props.detailed && legendEl.value ? [chartLegend(legendEl.value)] : [])],
});
};