src/charts/brush.js
function setBrushByDates(dateA, dateB) {
            let selection = null;

            if (dateA !== null) {
                selection = [
                    xScale(new Date(dateA)),
                    xScale(new Date(dateB))
                ];
            }

            brush.move(chartBrush, selection);
        }
function setBrushByDates(dateA, dateB) {
            let selection = null;

            if (dateA !== null) {
                selection = [
                    xScale(new Date(dateA)),
                    xScale(new Date(dateB))
                ];
            }

            brush.move(chartBrush, selection);
        }
function setBrushByDates ( dateA , dateB ) { let selection = null ; if ( dateA !== null ) { selection = [ xScale ( new Date ( dateA ) ) , xScale ( new Date ( dateB ) ) ] ; } brush . move ( chartBrush , selection ) ; }
Sets a new brush extent within the passed dates
@param {String | Date} dateA Initial Date
@param {String | Date} dateB End Date
Sets a new brush extent within the passed dates