import React from "react"; import { Line } from "react-chartjs-2"; import { Chart as ChartJS, LineElement, CategoryScale, LinearScale, PointElement, } from "chart.js"; import { PowerIcon, ThroughputSummaryIcon } from "../../icons/analysis"; ChartJS.register(LineElement, CategoryScale, LinearScale, PointElement); const ThroughputSummary = () => { const data = { labels: ["08:00", "08:10", "08:20", "08:30", "08:40", "08:50", "09:00"], datasets: [ { label: "Units/hour", data: [100, 120, 110, 130, 125, 128, 132], borderColor: "#B392F0", tension: 0.4, pointRadius: 0, // hide points }, ], }; const options = { responsive: true, scales: { x: { grid: { display: false, }, ticks: { display: false, color: "#fff", }, }, y: { grid: { display: false, }, ticks: { display: false, color: "#fff", }, }, }, plugins: { legend: { display: false, }, tooltip: { enabled: true, }, }, }; const shiftUtilization = { "shift 1": 25, "shift 2": 45, "shift 3": 15, }; return (