Ternary plot using snap.svg-min.js

Hi
I am trying to use the ternary_plot function that requires snap.svg-min.sj.

It seems to “remember” previous plots, so when you open up a doc that has a ternary plot, it plots it correctly. But every doc you open after that, simply
adds another plot. So my doc ends up have 4 the 5 then 6 plots, instead of 1.

Then when you close the doc en “reload” all is fine.

Anyone perhaps have some experience with using ternary_plot ?