fix(web-app): type of ChartOption

This commit is contained in:
fastium
2025-05-20 13:18:34 +02:00
parent 5f3a338c57
commit d7a45fb576

View File

@@ -25,6 +25,8 @@ import {
Tooltip, Tooltip,
Legend, Legend,
TimeScale, TimeScale,
ChartOptions,
ScatterDataPoint,
} from "chart.js"; } from "chart.js";
import "chartjs-adapter-date-fns"; // Import the date adapter import "chartjs-adapter-date-fns"; // Import the date adapter
import { Scatter } from "vue-chartjs"; import { Scatter } from "vue-chartjs";
@@ -72,7 +74,7 @@ export default defineComponent({
} }
}); });
const chartOptions = { const chartOptions: ChartOptions<"scatter"> = {
responsive: true, responsive: true,
maintainAspectRatio: true, maintainAspectRatio: true,
scales: { scales: {