DC.js - marginMixin
marginMixin provides margin utility functions for both the Row Chart and Coordinate Grid Charts. The hierarchy of the marginMixin is defined in the diagram below.
marginMixin provides a single method to set the margin for coordinated axis based charts.
Gets or sets the left, right, top and bottom margin of the chart. The default margin of the chart is as follows −
a. Right - 50 a. Left - 30 a. Top - 10 a. Bottom - 30
var rightMargin = chart.margins().right; // 50 by default chart.margins().bottom = 60;