Skip to content

Commit b8d122f

Browse files
committed
fix disable history chart animation (PR openWB#2504)
1 parent b073500 commit b8d122f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • packages/modules/web_themes/koala/source/src/components/charts/historyChart

packages/modules/web_themes/koala/source/src/components/charts/historyChart/HistoryChart.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<script setup lang="ts">
2020
import { computed, ref, watch } from 'vue';
2121
import { useQuasar } from 'quasar';
22+
import type { ChartOptions } from 'chart.js';
2223
import { Line as ChartjsLine } from 'vue-chartjs';
2324
import {
2425
Chart,
@@ -258,10 +259,10 @@ const lineChartData = computed(() => {
258259
};
259260
});
260261
261-
const chartOptions = computed(() => ({
262+
const chartOptions = computed<ChartOptions<'line'>>(() => ({
262263
responsive: true,
263264
maintainAspectRatio: false,
264-
animation: { duration: 0 },
265+
animation: false,
265266
plugins: {
266267
legend: {
267268
display: !legendLarge.value && legendDisplay.value,

0 commit comments

Comments
 (0)