When one uses box selection to select data points it does not work as expected and warnings can be seen in the console.
It only works up to version 2.12.1 (2 years ago).
I have forked the example and made some adjustments, so you can see it for yourself.
https://stackblitz.com/edit/angular-plotly-gzvq3c