old_contents: """
  
  """
  #-----------------------------------------------------------------------------
  # Copyright (c) 2012 - 2014, Continuum Analytics, Inc. All rights reserved.
  #
  # Powered by the Bokeh Development Team.
  #
  # The full license is in the file LICENSE.txt, distributed with this software.
  #-----------------------------------------------------------------------------
  
  #-----------------------------------------------------------------------------
  # Imports
  #-----------------------------------------------------------------------------
  
  from ..enums import enumeration, LegendLocation
  from ..properties import HasProps
  from ..properties import Auto, Bool, Either, Enum, Int, Float, String, Tuple
  
  #-----------------------------------------------------------------------------
  # Classes and functions
  #-----------------------------------------------------------------------------
  
  Scale = enumeration('linear', 'categorical', 'datetime')
  
  
  class ChartOptions(HasProps):
      """Contains the default properties for :class:`Chart <bokeh.charts._chart.Chart`.
  
      Each of the ChartOptions properties can be passed into a Chart as kwargs.
      """
  
      title = String(None, help="""
      A title for the chart.
      """)
  
      legend = Either(Bool, Enum(LegendLocation), Tuple(Float, Float), help="""
      A location where the legend should draw itself.
      """)
  
      xgrid = Bool(True, help="""
      Whether to draw an x-grid.
      """)
  
      ygrid = Bool(True, help="""
      Whether to draw an y-grid.
      """)
  
      xlabel = String(None, help="""
      A label for the x-axis. (default: None)
      """)
  
      ylabel = String(None, help="""
      A label for the y-axis. (default: None)
      """)
  
      xscale = Either(Auto, Enum(Scale), help="""
      What kind of scale to use for the x-axis.
      """)
  
      yscale = Either(Auto, Enum(Scale), help="""
      What kind of scale to use for the y-axis.
      """)
  
      width = Int(600, help="""
      Width of the rendered chart, in pixels.
      """)
  
      height = Int(400, help="""
      Height of the rendered chart, in pixels.
      """)
  
      filename = Either(Bool(False), String, help="""
      A name for the file to save this chart to.
      """)
  
      server = Either(Bool(False), String, help="""
      A name to use to save this chart to on server.
      """)
  
      notebook = Either(Bool(False), String, help="""
      Whether to display the plot inline in an IPython/Jupyter
      notebook.
      """)
  
      tools = Either(Bool(True), String, help="""
      Whether to add default tools the the chart.
      """)
  
      title_text_font_size = String('14pt', help="""
      Font size to use for title label.
      """)
  
      responsive = Bool(False, help="""
      If True, the chart will automatically resize based on the size of its container. The
      aspect ratio of the plot will be preserved, but ``plot_width`` and ``plot_height``
      will act only to set the initial aspect ratio.
      """)
  
  
  # A shared instance of chart options used for overriding defaults
  default_options = ChartOptions()
  
new_contents: """
  
  """
  #-----------------------------------------------------------------------------
  # Copyright (c) 2012 - 2014, Continuum Analytics, Inc. All rights reserved.
  #
  # Powered by the Bokeh Development Team.
  #
  # The full license is in the file LICENSE.txt, distributed with this software.
  #-----------------------------------------------------------------------------
  
  #-----------------------------------------------------------------------------
  # Imports
  #-----------------------------------------------------------------------------
  
  from ..enums import enumeration, LegendLocation
  from ..properties import (HasProps, Auto, Bool, Either, Enum, Int, Float,
                            String, Tuple)
  from ..util.future import with_metaclass
  from ..model import Viewable
  #-----------------------------------------------------------------------------
  # Classes and functions
  #-----------------------------------------------------------------------------
  
  Scale = enumeration('linear', 'categorical', 'datetime')
  
  
  class ChartOptions(with_metaclass(Viewable, HasProps)):
      """Contains the default properties for :class:`Chart <bokeh.charts._chart.Chart`.
  
      Each of the ChartOptions properties can be passed into a Chart as kwargs.
      """
  
      title = String(None, help="""
      A title for the chart.
      """)
  
      legend = Either(Bool, Enum(LegendLocation), Tuple(Float, Float), help="""
      A location where the legend should draw itself.
      """)
  
      xgrid = Bool(True, help="""
      Whether to draw an x-grid.
      """)
  
      ygrid = Bool(True, help="""
      Whether to draw an y-grid.
      """)
  
      xlabel = String(None, help="""
      A label for the x-axis. (default: None)
      """)
  
      ylabel = String(None, help="""
      A label for the y-axis. (default: None)
      """)
  
      xscale = Either(Auto, Enum(Scale), help="""
      What kind of scale to use for the x-axis.
      """)
  
      yscale = Either(Auto, Enum(Scale), help="""
      What kind of scale to use for the y-axis.
      """)
  
      width = Int(600, help="""
      Width of the rendered chart, in pixels.
      """)
  
      height = Int(400, help="""
      Height of the rendered chart, in pixels.
      """)
  
      filename = Either(Bool(False), String, help="""
      A name for the file to save this chart to.
      """)
  
      server = Either(Bool(False), String, help="""
      A name to use to save this chart to on server.
      """)
  
      notebook = Either(Bool(False), String, help="""
      Whether to display the plot inline in an IPython/Jupyter
      notebook.
      """)
  
      tools = Either(Bool(True), String, help="""
      Whether to add default tools the the chart.
      """)
  
      title_text_font_size = String('14pt', help="""
      Font size to use for title label.
      """)
  
      responsive = Bool(False, help="""
      If True, the chart will automatically resize based on the size of its container. The
      aspect ratio of the plot will be preserved, but ``plot_width`` and ``plot_height``
      will act only to set the initial aspect ratio.
      """)
  
  
  # A shared instance of chart options used for overriding defaults
  default_options = ChartOptions()
  
subject: make ChartOptions Viewable so it can be used on docs autogeneration