From 6082814fd0484f9afd8187f7e88f9365548813af Mon Sep 17 00:00:00 2001 From: Baitinq Date: Tue, 2 Jul 2024 12:00:41 +0200 Subject: LineGraph: Write title without plugins --- src/components/Graphs/LineGraph.tsx | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/components/Graphs/LineGraph.tsx b/src/components/Graphs/LineGraph.tsx index 4cbea05..f16cc40 100644 --- a/src/components/Graphs/LineGraph.tsx +++ b/src/components/Graphs/LineGraph.tsx @@ -4,7 +4,6 @@ import { LinearScale, PointElement, LineElement, - Title, Tooltip, } from 'chart.js'; import { Line } from 'react-chartjs-2'; @@ -14,19 +13,12 @@ ChartJS.register( LinearScale, PointElement, LineElement, - Title, Tooltip ); export default function LineGraph() { const options = { responsive: true, - plugins: { - title: { - display: true, - text: 'File writes per second', - }, - }, scales: { x: { grid: { @@ -67,6 +59,9 @@ export default function LineGraph() { }; return ( - +
+

File writes per second

+ +
) } -- cgit 1.4.1