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

Method margins

src/base/margin-mixin.js:29–35  ·  view source on GitHub ↗

* Get or set the margins for a particular coordinate grid chart instance. The margins is stored as * an associative Javascript array. * @memberof MarginMixin * @instance * @example * var leftMargin = chart.margins().left; // 30 by default * chart.margins().left = 50;

(margins)

Source from the content-addressed store, hash-verified

27 * @returns {{top: Number, right: Number, left: Number, bottom: Number}|MarginMixin}
28 */
29 margins (margins) {
30 if (!arguments.length) {
31 return this._margin;
32 }
33 this._margin = margins;
34 return this;
35 }
36
37 /**
38 * Effective width of the chart excluding margins (in pixels).

Callers 15

effectiveWidthMethod · 0.95
effectiveHeightMethod · 0.95
_generateGMethod · 0.45
renderXAxisMethod · 0.45
_xAxisYMethod · 0.45
xAxisLabelMethod · 0.45
renderYAxisLabelMethod · 0.45
renderYAxisAtMethod · 0.45
renderYAxisMethod · 0.45
_yAxisXMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected