isArea is now passed thru d3.functor so user can just set true or false instead of having to wrap that in a function. Set isArea(false) on historicalStockChart

master-patched
Bob Monteverde 12 years ago
parent 960eb3f377
commit 3daa1b969f

@ -2272,7 +2272,7 @@ nv.models.historicalStockChart = function() {
var stocks = nv.models.ohlcBar(),
bars = nv.models.historicalBar(),
lines = nv.models.line().interactive(false),
lines = nv.models.line().interactive(false).isArea(true),
//x = d3.scale.linear(), // needs to be both line and historicalBar x Axis
x = stocks.xScale(),
x3 = lines.xScale(),
@ -3454,7 +3454,7 @@ nv.models.line = function() {
chart.isArea = function(_) {
if (!arguments.length) return isArea;
isArea = _;
isArea = d3.functor(_);
return chart;
};

6
nv.d3.min.js vendored

File diff suppressed because one or more lines are too long

@ -20,7 +20,7 @@ nv.models.historicalStockChart = function() {
var stocks = nv.models.ohlcBar(),
bars = nv.models.historicalBar(),
lines = nv.models.line().interactive(false),
lines = nv.models.line().interactive(false).isArea(true),
//x = d3.scale.linear(), // needs to be both line and historicalBar x Axis
x = stocks.xScale(),
x3 = lines.xScale(),

@ -255,7 +255,7 @@ nv.models.line = function() {
chart.isArea = function(_) {
if (!arguments.length) return isArea;
isArea = _;
isArea = d3.functor(_);
return chart;
};

Loading…
Cancel
Save