Skip to content

Commit

Permalink
re-apply 1d8de41
Browse files Browse the repository at this point in the history
reverted in PR #794, needed in PR #798
  • Loading branch information
gordonwoodhull committed Apr 3, 2015
1 parent 6174160 commit 9c1fd8d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 17 deletions.
4 changes: 2 additions & 2 deletions dc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8011,8 +8011,8 @@ dc.heatMap = function (parent, chartGroup) {
.on('click', _chart.boxOnClick());

if (_chart.renderTitle()) {
gEnter.append('title')
.text(_chart.title());
gEnter.append('title');
boxes.selectAll('title').text(_chart.title());
}

dc.transition(boxes.selectAll('rect'), _chart.transitionDuration())
Expand Down
2 changes: 1 addition & 1 deletion 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.

4 changes: 2 additions & 2 deletions src/heatmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ dc.heatMap = function (parent, chartGroup) {
.on('click', _chart.boxOnClick());

if (_chart.renderTitle()) {
gEnter.append('title')
.text(_chart.title());
gEnter.append('title');
boxes.selectAll('title').text(_chart.title());
}

dc.transition(boxes.selectAll('rect'), _chart.transitionDuration())
Expand Down
16 changes: 5 additions & 11 deletions web/js/dc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3259,15 +3259,9 @@ dc.stackMixin = function (_chart) {
};

function flattenStack() {
var groups = _chart.data();

if (groups.length) {
groups[0].values = _chart._computeOrderedGroups(groups[0].values);
}

return groups.reduce(function (all, layer) {
return all.concat(layer.values);
}, []);
var valueses = _chart.data().map(function (layer) { return layer.values; });
var flattened = Array.prototype.concat.apply([], valueses);
return _chart._computeOrderedGroups(flattened);
}

_chart.xAxisMin = function () {
Expand Down Expand Up @@ -8017,8 +8011,8 @@ dc.heatMap = function (parent, chartGroup) {
.on('click', _chart.boxOnClick());

if (_chart.renderTitle()) {
gEnter.append('title')
.text(_chart.title());
gEnter.append('title');
boxes.selectAll('title').text(_chart.title());
}

dc.transition(boxes.selectAll('rect'), _chart.transitionDuration())
Expand Down

0 comments on commit 9c1fd8d

Please sign in to comment.