Back to the questions...
Similar to the above, you can't pass a filter to the getUnderlyingDataAsync() method. What you can do though is to first call the applyFilterAsync() on the viz which will filter the chart and underlying data. Once that's done, you can then use getUnderlyingDataAsync().
Hope this helps!