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

Method legendToggle

src/base/stack-mixin.js:313–323  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

311 }
312
313 legendToggle (d) {
314 if (this._hidableStacks) {
315 if (this.isLegendableHidden(d)) {
316 this.showStack(d.name);
317 } else {
318 this.hideStack(d.name);
319 }
320 //_chart.redraw();
321 this.renderGroup();
322 }
323 }
324}

Callers

nothing calls this directly

Calls 4

isLegendableHiddenMethod · 0.95
showStackMethod · 0.95
hideStackMethod · 0.95
renderGroupMethod · 0.80

Tested by

no test coverage detected