ajout de composants pour li'nterface admin

This commit is contained in:
2023-02-12 13:05:56 +01:00
parent 97c95f145c
commit 4e807430d1
11 changed files with 319 additions and 32 deletions

View File

@@ -2,16 +2,16 @@ import React from 'react'
import { Bar } from 'react-chartjs-2'
import Chart from 'chart.js/auto';
export default function ComparativeBarChart({ xlabels, data0, label0, data1, label1, title }) {
export default function ComparativeBarChart({ xlabels, data0, label0, data1, label1}) {
return (
<Bar
options={{
plugins: {
title: {
display: true,
text: title
},
},
// plugins: {
// title: {
// display: true,
// text: title
// },
// },
responsive: true,
interaction: {
intersect: false,