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

Method filter

src/charts/heatmap.js:117–131  ·  view source on GitHub ↗
(filter)

Source from the content-addressed store, hash-verified

115 }
116
117 filter (filter) {
118 const nonstandardFilter = f => {
119 logger.warnOnce('heatmap.filter taking a coordinate is deprecated - please pass dc.filters.TwoDimensionalFilter instead');
120 return this._filter(filters.TwoDimensionalFilter(f));
121 };
122
123 if (!arguments.length) {
124 return super.filter();
125 }
126 if (filter !== null && filter.filterType !== 'TwoDimensionalFilter' &&
127 !(Array.isArray(filter) && Array.isArray(filter[0]) && filter[0][0].filterType === 'TwoDimensionalFilter')) {
128 return nonstandardFilter(filter);
129 }
130 return super.filter(filter);
131 }
132
133 /**
134 * Gets or sets the values used to create the rows of the heatmap, as an array. By default, all

Callers 15

constructorMethod · 0.95
_filterAxisMethod · 0.95
printers.jsFile · 0.45
constructorMethod · 0.45
_doRedrawMethod · 0.45
_onChangeMethod · 0.45
plotDataMethod · 0.45
constructorMethod · 0.45
_leftYAxisChildrenMethod · 0.45
_rightYAxisChildrenMethod · 0.45
_drawDotsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected