Chartjs-How to fill an array with for loop in Javascript

0๐Ÿ‘

โœ…

I made it just changed the data to this:

 data = {
        labels: created_date,
        datasets: allCurrency.map(currency => ({
            label: currency,
            borderColor: generateRandomColor(),
            data: albanianLek
        }))
    };

Leave a comment