We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8314bb commit 07f9f1fCopy full SHA for 07f9f1f
web/src/pages/Home/CourtOverview/BarChart.tsx
@@ -9,6 +9,7 @@ import {
9
PointElement,
10
LineElement,
11
TimeScale,
12
+ ChartOptions,
13
} from "chart.js";
14
import ChartDataLabels from "chartjs-plugin-datalabels";
15
import { Bar } from "react-chartjs-2";
@@ -45,12 +46,9 @@ const BarChart: React.FC<IBarChartProps> = ({ chartData }) => {
45
46
47
const tickSize = 5; // suggested, if that many labels can't fit, chart will use even labels
48
- const options = {
49
+ const options: ChartOptions<"bar"> = {
50
responsive: true,
51
maintainAspectRatio: false,
- tooltips: {
52
- position: "nearest",
53
- },
54
scales: {
55
x: {
56
grid: { display: false },
0 commit comments