From f60316d7f89977d90abe4aea46f154a382979242 Mon Sep 17 00:00:00 2001 From: Ayush Thakur Date: Wed, 21 Sep 2022 13:19:49 +0530 Subject: [PATCH] Imported the Chart component from chart.js file We have to import the Chart component also because without it we will not be able to plot the x-axis --- src/components/LineChart.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/LineChart.jsx b/src/components/LineChart.jsx index 3c4303e..b97a05d 100644 --- a/src/components/LineChart.jsx +++ b/src/components/LineChart.jsx @@ -2,6 +2,7 @@ import React from 'react'; import { Line } from 'react-chartjs-2'; import { Col, Row, Typography } from 'antd'; +import Chart from 'chart.js/auto'; const { Title } = Typography;