Fixed Issues #161 in the sparklinePlus

This commit is contained in:
Bob Monteverde 2012-08-27 13:25:32 -04:00
parent 0397b38507
commit 3d54e41e53

View File

@ -207,7 +207,10 @@ nv.models.sparklinePlus = 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;
};