Do we have any OnComplete method once diagram is plotted

Normally Diagram is plotted within a second, but for huge data it takes around 4-5 seconds.
We have a requirement were we need to execute some code when diagram is plotted.
So do we have any callback method or on-complete event from where we can write such code…?