From f3c9c4a99f5deebd49ff63b76d795a6d1689e695 Mon Sep 17 00:00:00 2001 From: Matthias Nannt Date: Fri, 29 Jul 2022 00:54:20 +0200 Subject: [PATCH] bugfix chartjs error --- components/results/summary/ChoiceResults.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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,