Skip to content

Commit 07f9f1f

Browse files
committed
fix: coderabbit ai comments
1 parent a8314bb commit 07f9f1f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

web/src/pages/Home/CourtOverview/BarChart.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
PointElement,
1010
LineElement,
1111
TimeScale,
12+
ChartOptions,
1213
} from "chart.js";
1314
import ChartDataLabels from "chartjs-plugin-datalabels";
1415
import { Bar } from "react-chartjs-2";
@@ -45,12 +46,9 @@ const BarChart: React.FC<IBarChartProps> = ({ chartData }) => {
4546

4647
const tickSize = 5; // suggested, if that many labels can't fit, chart will use even labels
4748

48-
const options = {
49+
const options: ChartOptions<"bar"> = {
4950
responsive: true,
5051
maintainAspectRatio: false,
51-
tooltips: {
52-
position: "nearest",
53-
},
5452
scales: {
5553
x: {
5654
grid: { display: false },

0 commit comments

Comments
 (0)