add brushExtent to chart to enable the ability to set default focus range.

There is a brushExtent when init, so I guess maybe you guys just forgot to put the public function available.
master-patched
tubaxenor 11 years ago
parent 683eb18ce1
commit b1a7d2211c

@ -1,4 +1,3 @@
nv.models.lineWithFocusChart = function() { nv.models.lineWithFocusChart = function() {
//============================================================ //============================================================
@ -553,6 +552,12 @@ nv.models.lineWithFocusChart = function() {
return chart; return chart;
}; };
chart.brushExtent = function(_) {
if (!arguments.length) return brushExtent;
brushExtent = _;
return chart;
};
//============================================================ //============================================================

Loading…
Cancel
Save