import { Chart, registerables, CategoryScale, LinearScale, BarElement, Title, Tooltip, Legend, } from 'chart.js'; import React, { useEffect } from 'react'; import { Line } from 'react-chartjs-2'; import { options } from './options'; function App() { Chart.register(...registerables, CategoryScale, LinearScale, BarElement, Title, Tooltip, Legend, ); const width = 250; const height = 250; useEffect((