How to install and config plotly in nuxt 2 SSR Mode

I am desperately trying to use ploytly in nuxt 2 (SSR Mode). I found this topic how-to-add-plotly-js-into-nuxt-project but still get the “self is not defined” error. I long for a little step by step guide how to be able to use plotly as a nuxt plugin in nuxt 2, SSR Mode, hoping that someone has already done this, Thank you, cheers tim