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) 483 B
// Copyright: 2015 AlignAlytics // License: "https://github.com/PMSI-AlignAlytics/dimple/blob/master/MIT-LICENSE.txt" // Source: /src/objects/aggregateMethod/count.js dimple.aggregateMethod.count = function (lhs, rhs) { lhs.count = (lhs.count === null || lhs.count === undefined ? 0 : parseFloat(lhs.count)); rhs.count = (rhs.count === null || rhs.count === undefined ? 0 : parseFloat(rhs.count)); return lhs.count + rhs.count; };