How to show loading graphs message in plotly?

I am using plotly in R Shiny and I want to show message like ‘loading graph’ while plotting is in progress.

How do I achieve this?

Expected output:

Did you ever find a solution to this?

nope… i haven’t found anything… :disappointed: