private function colorizeRatios(Collection $ratios)
    {
        $colors = ['#F56954', '#00A65A', '#F39C12', '#00C0EF', '#3C8DBC'];

        return $ratios->values()->transform(function (array $values, $key) use ($colors) {
            return $values + ['color' => $colors[$key]];
        });
    }
private function colorizeRatios(Collection $ratios)
    {
        $colors = ['#F56954', '#00A65A', '#F39C12', '#00C0EF', '#3C8DBC'];

        return $ratios->values()->transform(function (array $values, $key) use ($colors) {
            return $values + ['color' => $colors[$key]];
        });
    }
private function colorizeRatios ( Collection $ ratios ) { $ colors = [ '#F56954' , '#00A65A' , '#F39C12' , '#00C0EF' , '#3C8DBC' ] ; return $ ratios -> values ( ) -> transform ( function ( array $ values , $ key ) use ( $ colors ) { return $ values + [ 'color' => $ colors [ $ key ] ] ; } ) ; }
Colorize the ratios.

@param  \Illuminate\Database\Eloquent\Collection  $ratios

@return \Illuminate\Database\Eloquent\Collection
Colorize the ratios .