diff --git a/components/results/summary/ChoiceResults.tsx b/components/results/summary/ChoiceResults.tsx index 649e290ac3..48ff8c4796 100644 --- a/components/results/summary/ChoiceResults.tsx +++ b/components/results/summary/ChoiceResults.tsx @@ -1,14 +1,7 @@ +import "chart.js/auto"; import { Chart } from "react-chartjs-2"; -import { - Chart as ChartJS, - CategoryScale, - LinearScale, - BarElement, -} from "chart.js"; import BaseResults from "./BaseResults"; -ChartJS.register(CategoryScale, LinearScale, BarElement); - export default function ChoiceResults({ element }) { const data = { //labels: element.data.options,