Make lineWithFocusChart have consistent x and y value getters

lineWithFocusChart uses two separate line charts, and this change
ensures that any x/y value getter (e.g. `chart.x(...)`) set on the main
line chart is also migrated to the focus chart.
master-patched
Itay Neeman 12 years ago
parent 8cc955c29c
commit 0355c9cbe5

@ -3552,6 +3552,8 @@ nv.models.lineWithFocusChart = function() {
lines2
.width(availableWidth)
.height(availableHeight2)
.x(lines.x())
.y(lines.y())
.color(data.map(function(d,i) {
return d.color || color[i % color.length];
}).filter(function(d,i) { return !data[i].disabled }));

8
nv.d3.min.js vendored

File diff suppressed because one or more lines are too long

@ -104,6 +104,8 @@ nv.models.lineWithFocusChart = function() {
lines2
.width(availableWidth)
.height(availableHeight2)
.x(lines.x())
.y(lines.y())
.color(data.map(function(d,i) {
return d.color || color[i % color.length];
}).filter(function(d,i) { return !data[i].disabled }));

Loading…
Cancel
Save