Skip to content

Commit 2ea80e4

Browse files
Fix heatmap x axis label position on redraw
1 parent 905b7d4 commit 2ea80e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/heatmap.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ dc.heatMap = function (parent, chartGroup) {
228228
.text(_chart.colsLabel());
229229
dc.transition(gColsText, _chart.transitionDuration())
230230
.text(_chart.colsLabel())
231-
.attr('x', function (d) { return cols(d) + boxWidth / 2; });
231+
.attr('x', function (d) { return cols(d) + boxWidth / 2; })
232+
.attr('y', _chart.effectiveHeight());
232233
gColsText.exit().remove();
233234
var gRows = _chartBody.selectAll('g.rows');
234235
if (gRows.empty()) {

0 commit comments

Comments
 (0)