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

Method group

src/base/stack-mixin.js:124–135  ·  view source on GitHub ↗
(g, n, f)

Source from the content-addressed store, hash-verified

122 }
123
124 group (g, n, f) {
125 if (!arguments.length) {
126 return super.group();
127 }
128 this._stack = [];
129 this._titles = {};
130 this.stack(g, n);
131 if (f) {
132 this.valueAccessor(f);
133 }
134 return super.group(g, n);
135 }
136
137 /**
138 * Allow named stacks to be hidden or shown by clicking on legend items.

Callers

nothing calls this directly

Calls 2

stackMethod · 0.95
valueAccessorMethod · 0.80

Tested by

no test coverage detected