<div className='container'>
{!historicalData ?
(<CircularProgress style={{color:"gold", size:250}} thickness={1} />)
:
(<div>
<Line data={{
labels:historicalData.map((coin) => {
let date = new Date(coin[0]);
let time = date.getHours() > 12
? `${date.getHours() -12} : ${date.getMinutes()}PM`
: `${date.getHours()} : ${date.getMinutes()}AM`;
return days === 1 ? time : date.toLocaleDateString();
}),
datasets: [{date: historicalData.map((coin) => coin[1]) }]
}} />
</div>)
}
</div>
When i remove from project all working good and now i wanted to use Line chart in my project but i am not able to use it