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

Method _flattenStack

src/base/stack-mixin.js:198–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

196 }
197
198 _flattenStack () {
199 // A round about way to achieve flatMap
200 // When target browsers support flatMap, just replace map -> flatMap, no concat needed
201 const values = this.data().map(layer => layer.domainValues);
202 return [].concat(...values);
203 }
204
205 xAxisMin () {
206 const m = min(this._flattenStack(), pluck('x'));

Callers 5

yAxisMinMethod · 0.95
yAxisMaxMethod · 0.95
xAxisMinMethod · 0.95
xAxisMaxMethod · 0.95
_ordinalXDomainMethod · 0.95

Calls 1

dataMethod · 0.80

Tested by

no test coverage detected