UNPKG

dimple-js

Version:

Dimple is an object-oriented API allowing you to create flexible axis-based charts using [d3.js](http://d3js.org "d3.js").

9 lines (8 loc) 479 B
// Copyright: 2015 AlignAlytics // License: "https://github.com/PMSI-AlignAlytics/dimple/blob/master/MIT-LICENSE.txt" // Source: /src/objects/aggregateMethod/sum.js dimple.aggregateMethod.sum = function (lhs, rhs) { lhs.value = (lhs.value === null || lhs.value === undefined ? 0 : parseFloat(lhs.value)); rhs.value = (rhs.value === null || rhs.value === undefined ? 0 : parseFloat(rhs.value)); return lhs.value + rhs.value; };