Merging in Pull Request #117

master-patched
Bob Monteverde 12 years ago
commit ae1e42ea11

@ -4184,6 +4184,23 @@ nv.models.lineWithFocusChart = function() {
};
// Chart has multiple similar Axes, to prevent code duplication, probably need to link all axis functions manually like below
chart.xTickFormat = function(_) {
if (!arguments.length) return xAxis.tickFormat();
xAxis.tickFormat(_);
x2Axis.tickFormat(_);
return chart;
};
chart.yTickFormat = function(_) {
if (!arguments.length) return yAxis.tickFormat();
yAxis.tickFormat(_);
y2Axis.tickFormat(_);
return chart;
};
return chart;
}

6
nv.d3.min.js vendored

File diff suppressed because one or more lines are too long

@ -458,5 +458,22 @@ nv.models.lineWithFocusChart = function() {
};
// Chart has multiple similar Axes, to prevent code duplication, probably need to link all axis functions manually like below
chart.xTickFormat = function(_) {
if (!arguments.length) return xAxis.tickFormat();
xAxis.tickFormat(_);
x2Axis.tickFormat(_);
return chart;
};
chart.yTickFormat = function(_) {
if (!arguments.length) return yAxis.tickFormat();
yAxis.tickFormat(_);
y2Axis.tickFormat(_);
return chart;
};
return chart;
}

Loading…
Cancel
Save