Okay, after doing some research. I found such function is not implemented jet:
I’v done it like so, quite sinple:
myPlot.on('plotly_selected', function(eventData) {
console.log(eventData.points);//<---- all markers
//after that zoom in manually
Plotly.relayout('myDiv', 'xaxis.range', [+new Date(eventData.range.x[0]), +new Date(eventData.range.x[1])])
});