Fixed Issues #161 in the sparkline

This commit is contained in:
Bob Monteverde 2012-08-27 13:25:58 -04:00
parent 3d54e41e53
commit 2343f25471

View File

@ -88,7 +88,10 @@ nv.models.sparkline = function() {
chart.margin = function(_) {
if (!arguments.length) return margin;
margin = _;
margin.top = typeof _.top != 'undefined' ? _.top : margin.top;
margin.right = typeof _.right != 'undefined' ? _.right : margin.right;
margin.bottom = typeof _.bottom != 'undefined' ? _.bottom : margin.bottom;
margin.left = typeof _.left != 'undefined' ? _.left : margin.left;
return chart;
};