I want to sum the property values of PieData
. My expected output is
25515512+916952499 = 942468011
var PieData = [{
value: 25515512,
color: "#00a65a",
highlight: "#00a65a",
label: "Received Fund"
}, {
value: 916952499,
color: "#f56954",
highlight: "#f56954",
label: "Pending Fund"
}],
userSelectedColors = ['value'];
var totalCount = _.sumBy(userSelectedColors, _.partial(_.sumBy, PieData));
console.log(totalCount);