diff --git a/frontend/src/components/projectStats/contributorsStats.js b/frontend/src/components/projectStats/contributorsStats.js index 5facb55904..1d6aa41bb9 100644 --- a/frontend/src/components/projectStats/contributorsStats.js +++ b/frontend/src/components/projectStats/contributorsStats.js @@ -1,5 +1,5 @@ import React from 'react'; -import { Chart as ChartJS, ArcElement, BarElement } from 'chart.js'; +import { Chart as ChartJS, ArcElement, BarElement, CategoryScale, LinearScale } from 'chart.js'; import { Doughnut, Bar } from 'react-chartjs-2'; import { FormattedMessage, useIntl } from 'react-intl'; @@ -10,7 +10,7 @@ import { formatChartData, formatTooltip } from '../../utils/formatChartJSData'; import { useContributorStats } from '../../hooks/UseContributorStats'; import { StatsCardContent } from '../statsCard'; -ChartJS.register(ArcElement, BarElement); +ChartJS.register(ArcElement, BarElement, CategoryScale, LinearScale); export default function ContributorsStats({ contributors }) { const intl = useIntl();