Added height2 and height3 to historical stock charts public functions, also tweaked the default values

master-patched
Bob Monteverde 12 years ago
parent d3b1dcdb4e
commit 59dddeb652

@ -2257,8 +2257,8 @@ nv.models.historicalStockChart = function() {
margin3 = {top: 0, right: 30, bottom: 20, left: 80},
width = null,
height = null,
height2 = 100,
height3 = 80,
height2 = 80,
height3 = 65,
getX = function(d) { return d.x },
getY = function(d) { return d.y },
id = Math.floor(Math.random() * 10000), //Create semi-unique ID incase user doesn't select one
@ -2785,6 +2785,18 @@ nv.models.historicalStockChart = function() {
return chart;
};
chart.height2 = function(_) {
if (!arguments.length) return height2;
height2 = _;
return chart;
};
chart.height3 = function(_) {
if (!arguments.length) return height3;
height3 = _;
return chart;
};
chart.color = function(_) {
if (!arguments.length) return color;
color = _;

6
nv.d3.min.js vendored

File diff suppressed because one or more lines are too long

@ -5,8 +5,8 @@ nv.models.historicalStockChart = function() {
margin3 = {top: 0, right: 30, bottom: 20, left: 80},
width = null,
height = null,
height2 = 100,
height3 = 80,
height2 = 80,
height3 = 65,
getX = function(d) { return d.x },
getY = function(d) { return d.y },
id = Math.floor(Math.random() * 10000), //Create semi-unique ID incase user doesn't select one
@ -533,6 +533,18 @@ nv.models.historicalStockChart = function() {
return chart;
};
chart.height2 = function(_) {
if (!arguments.length) return height2;
height2 = _;
return chart;
};
chart.height3 = function(_) {
if (!arguments.length) return height3;
height3 = _;
return chart;
};
chart.color = function(_) {
if (!arguments.length) return color;
color = _;

Loading…
Cancel
Save