templates/assets/js/chart.js
function (r, g, b) {
            if (r > 255 || g > 255 || b > 255)
                throw "Invalid color component";
            return ((r << 16) | (g << 8) | b).toString(16);
        }
function (r, g, b) {
            if (r > 255 || g > 255 || b > 255)
                throw "Invalid color component";
            return ((r << 16) | (g << 8) | b).toString(16);
        }
function ( r , g , b ) { if ( r > 255 || g > 255 || b > 255 ) throw "Invalid color component" ; return ( ( r << 16 ) | ( g << 8 ) | b ) . toString ( 16 ) ; }
Transforming rgb colors into Hex
Transforming rgb colors into Hex