docstr: Construct a new Rangeselector object
  
  Parameters
  ----------
  arg
      dict of properties compatible with this constructor or
      an instance of
      :class:`plotly.graph_objs.layout.xaxis.Rangeselector`
  activecolor
      Sets the background color of the active range selector
      button.
  bgcolor
      Sets the background color of the range selector
      buttons.
  bordercolor
      Sets the color of the border enclosing the range
      selector.
  borderwidth
      Sets the width (in px) of the border enclosing the
      range selector.
  buttons
      Sets the specifications for each buttons. By default, a
      range selector comes with no buttons.
  buttondefaults
      When used in a template (as layout.template.layout.xaxi
      s.rangeselector.buttondefaults), sets the default
      property values to use for elements of
      layout.xaxis.rangeselector.buttons
  font
      Sets the font of the range selector button text.
  visible
      Determines whether or not this range selector is
      visible. Note that range selectors are only available
      for x axes of `type` set to or auto-typed to "date".
  x
      Sets the x position (in normalized coordinates) of the
      range selector.
  xanchor
      Sets the range selector's horizontal position anchor.
      This anchor binds the `x` position to the "left",
      "center" or "right" of the range selector.
  y
      Sets the y position (in normalized coordinates) of the
      range selector.
  yanchor
      Sets the range selector's vertical position anchor This
      anchor binds the `y` position to the "top", "middle" or
      "bottom" of the range selector.
  
  Returns
  -------
  Rangeselector
docstr_tok: ["Construct","a","new","Rangeselector","object","Parameters","--","--","--","--","--","arg","dict","of","properties","compatible","with","this","constructor","or","an","instance","of",":","class",":","`","plotly.graph_objs.layout.xaxis.Rangeselector","`","activecolor","Sets","the","background","color","of","the","active","range","selector","button",".","bgcolor","Sets","the","background","color","of","the","range","selector","buttons",".","bordercolor","Sets","the","color","of","the","border","enclosing","the","range","selector",".","borderwidth","Sets","the","width","(","in","px",")","of","the","border","enclosing","the","range","selector",".","buttons","Sets","the","specifications","for","each","buttons",".","By","default",",","a","range","selector","comes","with","no","buttons",".","buttondefaults","When","used","in","a","template","(","as","layout.template.layout.xaxi","s.rangeselector.buttondefaults",")",",","sets","the","default","property","values","to","use","for","elements","of","layout.xaxis.rangeselector.buttons","font","Sets","the","font","of","the","range","selector","button","text",".","visible","Determines","whether","or","not","this","range","selector","is","visible",".","Note","that","range","selectors","are","only","available","for","x","axes","of","`","type","`","set","to","or","auto-typed","to","``","date","''",".","x","Sets","the","x","position","(","in","normalized","coordinates",")","of","the","range","selector",".","xanchor","Sets","the","range","selector","'s","horizontal","position","anchor",".","This","anchor","binds","the","`","x","`","position","to","the","``","left","''",",","``","center","''","or","``","right","''","of","the","range","selector",".","y","Sets","the","y","position","(","in","normalized","coordinates",")","of","the","range","selector",".","yanchor","Sets","the","range","selector","'s","vertical","position","anchor","This","anchor","binds","the","`","y","`","position","to","the","``","top","''",",","``","middle","''","or","``","bottom","''","of","the","range","selector",".","Returns","--","--","--","-","Rangeselector"]
code: def __init__(
      self,
      arg=None,
      activecolor=None,
      bgcolor=None,
      bordercolor=None,
      borderwidth=None,
      buttons=None,
      buttondefaults=None,
      font=None,
      visible=None,
      x=None,
      xanchor=None,
      y=None,
      yanchor=None,
      **kwargs,
  ):
      """
      Construct a new Rangeselector object
  
      Parameters
      ----------
      arg
          dict of properties compatible with this constructor or
          an instance of
          :class:`plotly.graph_objs.layout.xaxis.Rangeselector`
      activecolor
          Sets the background color of the active range selector
          button.
      bgcolor
          Sets the background color of the range selector
          buttons.
      bordercolor
          Sets the color of the border enclosing the range
          selector.
      borderwidth
          Sets the width (in px) of the border enclosing the
          range selector.
      buttons
          Sets the specifications for each buttons. By default, a
          range selector comes with no buttons.
      buttondefaults
          When used in a template (as layout.template.layout.xaxi
          s.rangeselector.buttondefaults), sets the default
          property values to use for elements of
          layout.xaxis.rangeselector.buttons
      font
          Sets the font of the range selector button text.
      visible
          Determines whether or not this range selector is
          visible. Note that range selectors are only available
          for x axes of `type` set to or auto-typed to "date".
      x
          Sets the x position (in normalized coordinates) of the
          range selector.
      xanchor
          Sets the range selector's horizontal position anchor.
          This anchor binds the `x` position to the "left",
          "center" or "right" of the range selector.
      y
          Sets the y position (in normalized coordinates) of the
          range selector.
      yanchor
          Sets the range selector's vertical position anchor This
          anchor binds the `y` position to the "top", "middle" or
          "bottom" of the range selector.
  
      Returns
      -------
      Rangeselector
      """
      super(Rangeselector, self).__init__("rangeselector")
  
      if "_parent" in kwargs:
          self._parent = kwargs["_parent"]
          return
  
      # Validate arg
      # ------------
      if arg is None:
          arg = {}
      elif isinstance(arg, self.__class__):
          arg = arg.to_plotly_json()
      elif isinstance(arg, dict):
          arg = _copy.copy(arg)
      else:
          raise ValueError(
              """\
  The first argument to the plotly.graph_objs.layout.xaxis.Rangeselector
  constructor must be a dict or
  an instance of :class:`plotly.graph_objs.layout.xaxis.Rangeselector`"""
          )
  
      # Handle skip_invalid
      # -------------------
      self._skip_invalid = kwargs.pop("skip_invalid", False)
      self._validate = kwargs.pop("_validate", True)
  
      # Populate data dict with properties
      # ----------------------------------
      _v = arg.pop("activecolor", None)
      _v = activecolor if activecolor is not None else _v
      if _v is not None:
          self["activecolor"] = _v
      _v = arg.pop("bgcolor", None)
      _v = bgcolor if bgcolor is not None else _v
      if _v is not None:
          self["bgcolor"] = _v
      _v = arg.pop("bordercolor", None)
      _v = bordercolor if bordercolor is not None else _v
      if _v is not None:
          self["bordercolor"] = _v
      _v = arg.pop("borderwidth", None)
      _v = borderwidth if borderwidth is not None else _v
      if _v is not None:
          self["borderwidth"] = _v
      _v = arg.pop("buttons", None)
      _v = buttons if buttons is not None else _v
      if _v is not None:
          self["buttons"] = _v
      _v = arg.pop("buttondefaults", None)
      _v = buttondefaults if buttondefaults is not None else _v
      if _v is not None:
          self["buttondefaults"] = _v
      _v = arg.pop("font", None)
      _v = font if font is not None else _v
      if _v is not None:
          self["font"] = _v
      _v = arg.pop("visible", None)
      _v = visible if visible is not None else _v
      if _v is not None:
          self["visible"] = _v
      _v = arg.pop("x", None)
      _v = x if x is not None else _v
      if _v is not None:
          self["x"] = _v
      _v = arg.pop("xanchor", None)
      _v = xanchor if xanchor is not None else _v
      if _v is not None:
          self["xanchor"] = _v
      _v = arg.pop("y", None)
      _v = y if y is not None else _v
      if _v is not None:
          self["y"] = _v
      _v = arg.pop("yanchor", None)
      _v = yanchor if yanchor is not None else _v
      if _v is not None:
          self["yanchor"] = _v
  
      # Process unknown kwargs
      # ----------------------
      self._process_kwargs(**dict(arg, **kwargs))
  
      # Reset skip_invalid
      # ------------------
      self._skip_invalid = False
  
imports: from plotly.basedatatypes import BaseLayoutHierarchyType
  import copy
label_desc: Use image node_id 26 to create a new Rangeselector object from inherited base classes: _BaseLayoutHierarchyType with example: obj = Rangeselector(arg, activecolor, bgcolor, bordercolor, borderwidth, buttons, buttondefaults, font, visible, x, xanchor, y, yanchor)