Sha256: f686e62e600c243e01a8551fe0b3f39db3eeb6ae3220abd607d727b8f4a7d8b1
Contents?: true
Size: 585 Bytes
Versions: 18
Compression:
Stored size: 585 Bytes
Contents
;(function(Kiddo, d3){ Kiddo.Helper = function(){ var formatCurrency = function(d) { return "$" + formatValue(d); }; var formatValue = d3.format(",.2f"); return { parseDate: d3.time.format("%Y-%m-%d").parse, bisectDate: d3.bisector(function(d) { return d.x; }).left, formatCurrency: formatCurrency, formatValue: formatValue, formatValueDisplay: function(name, d) { return name + ": " + formatValue(d.y); // Add currency boolean on backend later -- formatCurrency(d.y); } } } }; })(window.Kiddo = window.Kiddo || {}, d3)
Version data entries
18 entries across 18 versions & 1 rubygems