class_docstr: Chart public functions
class_docstr_tok: ["Chart","public","functions"]
docstr: Output a base 64 encoded data uri
docstr_tok: ["Output","a","base","64","encoded","data","uri"]
code: def render_data_uri(self, **kwargs):
      """Output a base 64 encoded data uri"""
      # Force protocol as data uri have none
      kwargs.setdefault("force_uri_protocol", "https")
      return "data:image/svg+xml;charset=utf-8;base64,%s" % (
          base64.b64encode(self.render(**kwargs))
          .decode("utf-8")
          .replace("\n", "")
      )
  
imports: import base64
  import io
  from pygal._compat import is_list_like
  from pygal.graph.base import BaseGraph
label_desc: Use image node_id 11 for calling the PublicApi obj's underlying member method code with example usage: obj.render_data_uri() and returns: unknown