Skip to content

Commit

Permalink
Fix row chart x-axis position on resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
crazycodingcat committed Aug 28, 2015
1 parent 584c551 commit 1ddf300
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/row-chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1ddf300

Please sign in to comment.