Cambiar Ver puerto de SVG con JavaScript

shape = document.getElementsByTagName("svg")[0];
shape.setAttribute("viewBox", "-250 -250 500 750"); 
Mehrshad Farzaneh