How to get the date by drag and select the bar graph

How can i get the Categorical values from relayoutData.

From the Bar graph having 20 Bar, i just want the data of that 3 bars which i drag and select.

Could anyone please help here.

Thanks In advance