Skip to content

Commit

Permalink
Allowing access to the paired row chart xAxis and yAxis
Browse files Browse the repository at this point in the history
  • Loading branch information
ruhley committed Sep 23, 2015
1 parent d001271 commit 5494b44
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 24 deletions.
30 changes: 15 additions & 15 deletions dc.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dc.js.map

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions dc.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dc.min.js.map

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions src/paired-row-chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ dc.pairedRowChart = function (parent, chartGroup) {

// the margins between the charts need to be set to 0 so that they sit together
var _margins = _chart.margins(); // get the default margins
_margins.right = _margins.left;

_chart.margins = function (_) {
if (!arguments.length) {
Expand Down Expand Up @@ -231,17 +232,17 @@ dc.pairedRowChart = function (parent, chartGroup) {
//colors
'colors', 'ordinalColors', 'linearColors', 'colorAccessor', 'colorDomain', 'getColor', 'colorCalculator',
// x axis
'x', 'elasticX', 'valueAccessor', 'labelOffsetX', 'titleLabelOffsetx',
'x', 'elasticX', 'valueAccessor', 'labelOffsetX', 'titleLabelOffsetx', 'xAxis',
// y axis
'keyAccessor', 'labelOffsetY',
'keyAccessor', 'labelOffsetY', 'yAxis',
// data
'cap', 'ordering' , 'dimension', 'group', 'othersGrouper', 'data'
];

function addGetterSetterFunction (functionName) {
_chart[functionName] = function (_) {
if (!arguments.length) {
return _leftChart[functionName]();
return [_leftChart[functionName](), _rightChart[functionName]()];
}
_leftChart[functionName](_);
_rightChart[functionName](_);
Expand Down

0 comments on commit 5494b44

Please sign in to comment.