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