Skip to content

Commit

Permalink
Fix issue #694
Browse files Browse the repository at this point in the history
  • Loading branch information
almossawi committed Aug 16, 2016
1 parent 8e62b64 commit 1b54bd2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
5 changes: 3 additions & 2 deletions dist/metricsgraphics.js
Original file line number Diff line number Diff line change
Expand Up @@ -4668,7 +4668,7 @@ MG.button_layout = function(target) {
var lineTransition = existing_line.transition()
.duration(plot.update_transition_duration);

if (!plot.display_area && args.transition_on_update) {
if (!plot.display_area && args.transition_on_update && !args.missing_is_hidden) {
lineTransition.attrTween('d', path_tween(plot.line(args.data[which_line]), 4));
} else {
lineTransition.attr('d', plot.line(args.data[which_line]));
Expand Down Expand Up @@ -8028,7 +8028,8 @@ function path_tween(d1, precision) {

return function(t) {
return t < 1 ? "M" + points.map(function(p) {
return p(t); }).join("L") : d1;
return p(t);
}).join("L") : d1;
};
};
}
Expand Down
4 changes: 4 additions & 0 deletions dist/metricsgraphics.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/js/charts/line.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/js/misc/transitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ function path_tween(d1, precision) {

return function(t) {
return t < 1 ? "M" + points.map(function(p) {
return p(t); }).join("L") : d1;
return p(t);
}).join("L") : d1;
};
};
}
Expand Down

0 comments on commit 1b54bd2

Please sign in to comment.