MCPcopy Index your code
hub / github.com/dc-js/dc.js / hideStack

Method hideStack

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

* Hide all stacks on the chart with the given name. * The chart must be re-rendered for this change to appear. * @param {String} stackName * @returns {StackMixin}

(stackName)

Source from the content-addressed store, hash-verified

160 * @returns {StackMixin}
161 */
162 hideStack (stackName) {
163 const layer = this._findLayerByName(stackName);
164 if (layer) {
165 layer.hidden = true;
166 }
167 return this;
168 }
169
170 /**
171 * Show all stacks on the chart with the given name.

Callers 3

legendToggleMethod · 0.95
line-chart-spec.jsFile · 0.80
bar-chart-spec.jsFile · 0.80

Calls 1

_findLayerByNameMethod · 0.95

Tested by

no test coverage detected