esLint
This commit is contained in:
@@ -12,6 +12,7 @@ import {
|
||||
Title,
|
||||
Tooltip,
|
||||
Legend,
|
||||
TooltipItem,
|
||||
} from "chart.js";
|
||||
import { Line } from "react-chartjs-2";
|
||||
|
||||
@@ -124,7 +125,7 @@ const SystemPage = () => {
|
||||
},
|
||||
tooltip: {
|
||||
callbacks: {
|
||||
label: function (context: any) {
|
||||
label: function (context: TooltipItem<"line">) {
|
||||
const label = context.dataset.label || "";
|
||||
const value =
|
||||
context.parsed.y !== null ? context.parsed.y.toFixed(2) : "";
|
||||
|
||||
Reference in New Issue
Block a user