diff --git a/src/components/shared/BarChart.tsx b/src/components/shared/BarChart.tsx index 6baf66015b..0048451498 100644 --- a/src/components/shared/BarChart.tsx +++ b/src/components/shared/BarChart.tsx @@ -1,14 +1,19 @@ import React from "react"; import { Bar } from "react-chartjs-2"; +import type { ChartDataset, ChartOptions } from 'chart.js'; /** * This component provides a bar chart for visualising (statistics) data */ const BarChart = ({ - values, - axisLabels, - options -}: any) => { + values, + axisLabels, + options +}: { + values: ChartDataset<'bar'>, + axisLabels: string[], + options: ChartOptions<'bar'>, +}) => { const data = { labels: axisLabels, datasets: [