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

Method constructor

src/charts/legend.js:19–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 */
18export class Legend {
19 constructor () {
20 this._parent = undefined;
21 this._x = 0;
22 this._y = 0;
23 this._itemHeight = 12;
24 this._gap = 5;
25 this._horizontal = false;
26 this._legendWidth = 560;
27 this._itemWidth = 70;
28 this._autoItemWidth = false;
29 this._legendText = pluck('name');
30 this._maxItems = undefined;
31 this._highlightSelected = false;
32 this._keyboardAccessible = false;
33
34 this._g = undefined;
35 }
36
37 parent (p) {
38 if (!arguments.length) {

Callers

nothing calls this directly

Calls 1

pluckFunction · 0.90

Tested by

no test coverage detected