MCPcopy
hub / github.com/dc-js/dc.js / remove_empty_bins

Function remove_empty_bins

web-src/transitions/ordinal-transition.js:1–9  ·  view source on GitHub ↗
(source_group)

Source from the content-addressed store, hash-verified

1function remove_empty_bins(source_group) {
2 return {
3 all:function () {
4 return source_group.all().filter(function(d) {
5 return d.value !== 0;
6 });
7 }
8 };
9}
10function ordinal_filter(bins) {
11 return function(d) {
12 return bins.indexOf(d) >=0;

Callers 1

startOrdinalFunction · 0.85

Calls 1

filterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…