🎯
Focusing
Highlights
Pinned Loading
-
-
-
Brush function for d3.js that redraw...
Brush function for d3.js that redraws the vertical axis based on the range of data currently shown 1function brush() {
2// Use x.domain to filter the data, then find the max and min duration of this new set, and set y.domain to that
3x.domain(brush.empty() ? x2.domain() : brush.extent());
4var dataFiltered = data.filter(function(d, i) {
5if ( (d.date >= x.domain()[0]) && (d.date <= x.domain()[1]) ) {
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.