I\'m trying to manipulate the svg \'viewBox\' attribute which looks something like this:
...
I was able to use pure javascript to get the element and set the attribute by using
var svg = document.getElementsByTagName("svg")[0];
and
svg.setAttribute("viewBox","...");