Fixed Issues #161 in the sparklinePlus
This commit is contained in:
parent
0397b38507
commit
3d54e41e53
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user