diff --git a/src/row-chart.js b/src/row-chart.js index 930b53922..34d66f549 100644 --- a/src/row-chart.js +++ b/src/row-chart.js @@ -66,9 +66,9 @@ dc.rowChart = function (parent, chartGroup) { calculateAxisScale(); if (axisG.empty()) { - axisG = _g.append('g').attr('class', 'axis') - .attr('transform', 'translate(0, ' + _chart.effectiveHeight() + ')'); + axisG = _g.append('g').attr('class', 'axis'); } + axisG.attr('transform', 'translate(0, ' + _chart.effectiveHeight() + ')'); dc.transition(axisG, _chart.transitionDuration()) .call(_xAxis);