|
|
|
@ -6,13 +6,14 @@ import {
|
|
|
|
BarElement,
|
|
|
|
BarElement,
|
|
|
|
Title,
|
|
|
|
Title,
|
|
|
|
Tooltip as ChartTooltip,
|
|
|
|
Tooltip as ChartTooltip,
|
|
|
|
Legend, PointElement, LineElement,
|
|
|
|
Legend, PointElement, LineElement, BarController,
|
|
|
|
} from 'chart.js';
|
|
|
|
} from 'chart.js';
|
|
|
|
import { useQuery } from "@tanstack/react-query";
|
|
|
|
import { useQuery } from "@tanstack/react-query";
|
|
|
|
import { api } from "../api.js";
|
|
|
|
import { api } from "../api.js";
|
|
|
|
|
|
|
|
|
|
|
|
ChartJS.register(
|
|
|
|
ChartJS.register(
|
|
|
|
CategoryScale,
|
|
|
|
CategoryScale,
|
|
|
|
|
|
|
|
BarController,
|
|
|
|
PointElement,
|
|
|
|
PointElement,
|
|
|
|
LineElement,
|
|
|
|
LineElement,
|
|
|
|
LinearScale,
|
|
|
|
LinearScale,
|
|
|
|
|