Chart not working its rendering a blank page but it is working fine for the bar component

๐Ÿ‘:0

Also try to import the registers like so

import {
  Chart as ChartJS,
  CategoryScale,
  LinearScale,
  BarElement,
  Title,
  Tooltip,
  Legend,
} from 'chart.js';


ChartJS.register(
  CategoryScale,
  LinearScale,
  BarElement,
  Title,
  Tooltip,
  Legend
);

i hope this helps

Leave a comment