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

Method data

src/base/base-mixin.js:311–318  ·  view source on GitHub ↗

* Set the data callback or retrieve the chart's data set. The data callback is passed the chart's * group and by default will return * https://github.com/crossfilter/crossfilter/wiki/API-Reference#group_all group.all. * This behavior may be modified to, for instance, return on

(callback)

Source from the content-addressed store, hash-verified

309 * @returns {*|BaseMixin}
310 */
311 data (callback) {
312 if (!arguments.length) {
313 return this._data(this._group);
314 }
315 this._data = typeof callback === 'function' ? callback : utils.constant(callback);
316 this.expireCache();
317 return this;
318 }
319
320 /**
321 * **mandatory**

Callers 15

boxFunction · 0.80
constructorMethod · 0.80
rMinMethod · 0.80
rMaxMethod · 0.80
_ordinalXDomainMethod · 0.80
xAxisMinMethod · 0.80
xAxisMaxMethod · 0.80
yAxisMinMethod · 0.80
yAxisMaxMethod · 0.80

Calls 1

expireCacheMethod · 0.95

Tested by

no test coverage detected