class_docstr: Chart public functions
class_docstr_tok: ["Chart","public","functions"]
docstr: Render the graph, and write it to filename
docstr_tok: ["Render","the","graph",",","and","write","it","to","filename"]
code: def render_to_file(self, filename, **kwargs):
      """Render the graph, and write it to filename"""
      with io.open(filename, "w", encoding="utf-8") as f:
          f.write(self.render(is_unicode=True, **kwargs))
  
imports: import base64
  import io
  from pygal._compat import is_list_like
  from pygal.graph.base import BaseGraph
label_desc: Use image node_id 12 for calling the PublicApi obj's underlying member method code with example usage: obj.render_to_file(filename) without return types