LinePlusFocus now rescales when series are removed. Also moved a couple more files to deprecated, and removed from Makefile

master-patched
Bob Monteverde 12 years ago
parent 51fc28358b
commit 8d9f496286

@ -4,7 +4,6 @@ JS_FILES = \
src/tooltip.js \
src/utils.js \
src/models/axis.js \
src/models/bar.js \
src/models/historicalBar.js \
src/models/bullet.js \
src/models/cumulativeLine.js \
@ -14,9 +13,7 @@ JS_FILES = \
src/models/legend.js \
src/models/line.js \
src/models/lineChart.js \
src/models/linePlusBar.js \
src/models/linePlusBarChart.js \
src/models/lineWithFocus.js \
src/models/lineWithFocusChart.js \
src/models/multiBar.js \
src/models/multiBarChart.js \

1136
nv.d3.js

File diff suppressed because it is too large Load Diff

7
nv.d3.min.js vendored

File diff suppressed because one or more lines are too long

@ -229,7 +229,7 @@ nv.models.lineWithFocusChart = function() {
}
function updateFocus() {
var yDomain = brush.empty() ? y2.domain() : d3.extent(d3.merge(data.map(function(d) { return d.values })).filter(function(d) {
var yDomain = brush.empty() ? y2.domain() : d3.extent(d3.merge(data.filter(function(d) { return !d.disabled }).map(function(d) { return d.values })).filter(function(d) {
return lines.x()(d) >= brush.extent()[0] && lines.x()(d) <= brush.extent()[1];
}), lines.y()); //This doesn't account for the 1 point before and the 1 point after the domain. Would fix, but likely need to change entire methodology here

Loading…
Cancel
Save