Is it possible to do calculations directly from the Plots

Can we do calculations on the plots, for example, slope between 2 points on the plot, average value between 2 points on the plot.
Should be able to print these values on the plots

Sure you can. Plotly graphs can emit event handlers which provide all the pieces to the puzzle – you just have to customize it to fit your need.