]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Accidentally left in Array.prototype.map. 711/head
authorChristopher Weiss <cmweiss@gmail.com>
Fri, 30 Jan 2015 16:12:08 +0000 (11:12 -0500)
committerChristopher Weiss <cmweiss@gmail.com>
Fri, 30 Jan 2015 16:12:08 +0000 (11:12 -0500)
src/Chart.Doughnut.js

index 8e60879a0e576f7f36e4c04606b4812b73c8fdc8..6233ed760bfe96cd0b7a180b86d61a8b4f56e6c8 100644 (file)
                        }
                        this.calculateTotal(data);
 
-                       data = data.map(function (v, i, a){
-                               if (!v.color) {
-                                       v.color = 'hsl(' + (360 * i / a.length) * 360 + ', 100%, 50%)';
-                                       return v;
-                               }
-                       });
-
                        helpers.each(data,function(datapoint, index){
                                if (!datapoint.color) {
                                        datapoint.color = 'hsl(' + (360 * index / data.length) + ', 100%, 50%)';