Closed artych closed 7 years ago
I think it could be solved by using _.reduce(data,...)
instead of data.reduce(...)
:
// app/controllers/scatter.coffee
totalPointData:
// ...
xValue: _.reduce(data, ((prev, d) -> prev + d.xValue), 0 )
yValue: _.reduce(data, ((prev, d) -> prev + d.yValue), 0 )
Link: http://addepar.github.io/ember-charts/#/ember-charts/scatter Select '----' Data: