0


<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

  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Dec 05 '22 at 09:50

0 Answers0