class_docstr: Class Docstring
  
  - Styling (.style)
  - Plotting (.plot)
  - Callouts (.callout)
  - Axes (.axes)
  - Bokeh figure (.figure)
class_docstr_tok: ["Class","Docstring","-","Styling","(",".style",")","-","Plotting","(",".plot",")","-","Callouts","(",".callout",")","-","Axes","(",".axes",")","-","Bokeh","figure","(",".figure",")"]
docstr: Save the chart.
  
  Args:
      filename (str): Name of output file.
      format (str):
          - 'html': Output chart as HTML.
              Renders faster and allows for interactivity.
              Charts saved as HTML in a Jupyter notebook WILL NOT display
              on Github.
              Logos will not display on HTML charts.
              Recommended when drafting plots.
  
          - 'png': Output chart as PNG.
              Easy to paste into google slides.
              Recommended when the plot is in a finished state.
              Will render logos.
  
          - 'svg': Output as SVG.
docstr_tok: ["Save","the","chart",".","Args",":","filename","(","str",")",":","Name","of","output","file",".","format","(","str",")",":","-","'html","'",":","Output","chart","as","HTML",".","Renders","faster","and","allows","for","interactivity",".","Charts","saved","as","HTML","in","a","Jupyter","notebook","WILL","NOT","display","on","Github",".","Logos","will","not","display","on","HTML","charts",".","Recommended","when","drafting","plots",".","-","'png","'",":","Output","chart","as","PNG",".","Easy","to","paste","into","google","slides",".","Recommended","when","the","plot","is","in","a","finished","state",".","Will","render","logos",".","-","'svg","'",":","Output","as","SVG","."]
code: def save(self, filename, format="html"):
      """Save the chart.
  
      Args:
          filename (str): Name of output file.
          format (str):
              - 'html': Output chart as HTML.
                  Renders faster and allows for interactivity.
                  Charts saved as HTML in a Jupyter notebook WILL NOT display
                  on Github.
                  Logos will not display on HTML charts.
                  Recommended when drafting plots.
  
              - 'png': Output chart as PNG.
                  Easy to paste into google slides.
                  Recommended when the plot is in a finished state.
                  Will render logos.
  
              - 'svg': Output as SVG.
      """
      self._set_toolbar_for_format(format)
  
      if format == "html":
          bokeh.io.saving.save(
              self.figure,
              filename=filename,
              resources=INLINE,
              title="Chartify chart.",
          )
      elif format == "png":
          image = self._figure_to_png()
          # Need to re-enable this when logos are added back.
          # image = self.logo._add_logo_to_image(image)
          image.save(filename)
      elif format == "svg":
          image = self._figure_to_svg()
          self._save_svg(image, filename)
  
      print("Saved to {filename}".format(filename=filename))
  
      return self
  
imports: from collections import OrderedDict
  from functools import wraps
  import io
  from io import BytesIO
  import tempfile
  import warnings
  import bokeh
  from bokeh.io.export import _SVG_SCRIPT, wait_until_render_complete
  import bokeh.plotting
  from bokeh.embed import file_html
  from bokeh.resources import INLINE
  from IPython.display import display
  from PIL import Image
  from PIL.Image import Resampling
  from selenium import webdriver
  from selenium.webdriver.chrome.options import Options
  from chartify._core.style import Style
  from chartify._core.axes import BaseAxes, SecondYNumericalAxis, SecondAxis
  from chartify._core.plot import BasePlot
  from chartify._core.callout import Callout
  from chartify._core.options import options
label_desc: Use image node_id 16 for calling the Chart obj's underlying member method code with example usage: obj.save(filename, format) and returns: self