Accidentally left in Array.prototype.map.

This commit is contained in:
Christopher Weiss
2015-01-30 11:12:08 -05:00
parent b8b7c85c5e
commit bb6237a15e

View File

@@ -71,13 +71,6 @@
}
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%)';