class_docstr: Svg related methods
class_docstr_tok: ["Svg","related","methods"]
docstr: Last things to do before rendering
docstr_tok: ["Last","things","to","do","before","rendering"]
code: def pre_render(self):
      """Last things to do before rendering"""
      self.add_styles()
      self.add_scripts()
      self.root.set(
          "viewBox", "0 0 %d %d" % (self.graph.width, self.graph.height)
      )
      if self.graph.explicit_size:
          self.root.set("width", str(self.graph.width))
          self.root.set("height", str(self.graph.height))
  
imports: from __future__ import division
  import io
  import json
  import os
  from datetime import date, datetime
  from math import pi
  from numbers import Number
  from urllib.parse import quote_plus
  from pygal import __version__
  from pygal.etree import etree
  from pygal.util import coord_abs_project, coord_diff, coord_dual, coord_format, coord_project, minify_css, template
label_desc: Use image node_id 12 for calling the Svg obj's underlying member method code with example usage: obj.pre_render() without return types