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

Method constructor

src/charts/html-legend.js:15–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13 */
14export class HtmlLegend {
15 constructor () {
16 this._htmlLegendDivCssClass = 'dc-html-legend';
17 this._legendItemCssClassHorizontal = 'dc-legend-item-horizontal';
18 this._legendItemCssClassVertical = 'dc-legend-item-vertical';
19 this._parent = undefined;
20 this._container = undefined;
21 this._legendText = pluck('name');
22 this._maxItems = undefined;
23 this._horizontal = false;
24 this._legendItemClass = undefined;
25 this._highlightSelected = false;
26 this._keyboardAccessible = false;
27 }
28
29 parent (p) {
30 if (!arguments.length) {

Callers

nothing calls this directly

Calls 1

pluckFunction · 0.90

Tested by

no test coverage detected