Black Lives Matter. Please consider donating to Black Girls Code today.

How to add drag functionality to line chart

Hello everyone , i am trying to achieve drag functionality for line chart .here is the example in d3 js :

How to achieve in plotly react