Adding renderwatch renderEnd to discreteBarChart.

development
Robin Hu 11 years ago
parent 4d2de136e7
commit fb7d07a298

@ -3790,10 +3790,12 @@ nv.models.discreteBarChart = function() {
nv.tooltip.show([left, top], content, e.value < 0 ? 'n' : 's', null, offsetElement);
};
var renderWatch = nv.utils.renderWatch(dispatch, transitionDuration);
//============================================================
function chart(selection) {
renderWatch.reset();
selection.each(function(data) {
var container = d3.select(this),
that = this;
@ -3954,6 +3956,7 @@ nv.models.discreteBarChart = function() {
});
renderWatch.renderEnd('discreteBar chart immediate');
return chart;
}

@ -58,10 +58,12 @@ nv.models.discreteBarChart = function() {
nv.tooltip.show([left, top], content, e.value < 0 ? 'n' : 's', null, offsetElement);
};
var renderWatch = nv.utils.renderWatch(dispatch, transitionDuration);
//============================================================
function chart(selection) {
renderWatch.reset();
selection.each(function(data) {
var container = d3.select(this),
that = this;
@ -222,6 +224,7 @@ nv.models.discreteBarChart = function() {
});
renderWatch.renderEnd('discreteBar chart immediate');
return chart;
}

Loading…
Cancel
Save