bugfix chartjs error

This commit is contained in:
Matthias Nannt
2022-07-29 00:54:20 +02:00
parent aa648f9b2d
commit f3c9c4a99f

View File

@@ -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,