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

Method hidableStacks

src/base/stack-mixin.js:143–149  ·  view source on GitHub ↗

* Allow named stacks to be hidden or shown by clicking on legend items. * This does not affect the behavior of hideStack or showStack. * @param {Boolean} [hidableStacks=false] * @returns {Boolean|StackMixin}

(hidableStacks)

Source from the content-addressed store, hash-verified

141 * @returns {Boolean|StackMixin}
142 */
143 hidableStacks (hidableStacks) {
144 if (!arguments.length) {
145 return this._hidableStacks;
146 }
147 this._hidableStacks = hidableStacks;
148 return this;
149 }
150
151 _findLayerByName (n) {
152 const i = this._stack.map(pluck('name')).indexOf(n);

Callers 2

legend-spec.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected