* 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)
| 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** |
no test coverage detected