Commit 756fbbc0 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Fix the NV library to send the focus brushend event so we can update the

datetime range above the slider. This used to work, but last update to
NVD3 library broke it. I did what I think was correct ...
parent 9f290702
......@@ -531,7 +531,7 @@ window.ShowIdleGraphs = (function ()
chart.brushExtent([minTime,maxTime]);
// Update the display on the X axis after brush change.
chart.focus.brush.on("brushend", function () {
chart.focus.dispatch.on("brushEnd", function () {
UpdateXaxisLabel(chart);
});
......
......@@ -4669,7 +4669,7 @@ nv.models.focus = function(content) {
, y
, brushExtent = null
, duration = 250
, dispatch = d3.dispatch('brush', 'onBrush', 'renderEnd')
, dispatch = d3.dispatch('brush', 'onBrush', 'renderEnd', 'brushEnd')
, syncBrushing = true
;
 
......@@ -4750,6 +4750,7 @@ nv.models.focus = function(content) {
});
 
brush.on('brushend', function () {
dispatch.brushEnd(brush.empty() ? x.domain() : brush.extent());
if (!syncBrushing) {
dispatch.onBrush(brush.empty() ? x.domain() : brush.extent());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment