Control where document.write writes

Hi,
I’m trying to use an external plugin in a tabs app.
The plugin is supposed to provide me the ability to present some graph:
https://www.tradingview.com/widget/

However, they decided that their script will do that by executing document.write upon call, which makes my whole page disappear and only show the graph.

Is it possible to somehow restrict where the document.write will write to some div or span?
Thank you