Answers for "assign random colors react chartjs"

0

assign random colors react chartjs

function getRandomColor() {
            var letters = '0123456789ABCDEF'.split('');
            var color = '#';
            for (var i = 0; i < 6; i++ ) {
                color += letters[Math.floor(Math.random() * 16)];
            }
            return color;
                }
Posted by: Guest on October-23-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language