docstr: Construct a new Currentvalue object
  
  Parameters
  ----------
  arg
      dict of properties compatible with this constructor or
      an instance of
      :class:`plotly.graph_objs.layout.slider.Currentvalue`
  font
      Sets the font of the current value label text.
  offset
      The amount of space, in pixels, between the current
      value label and the slider.
  prefix
      When currentvalue.visible is true, this sets the prefix
      of the label.
  suffix
      When currentvalue.visible is true, this sets the suffix
      of the label.
  visible
      Shows the currently-selected value above the slider.
  xanchor
      The alignment of the value readout relative to the
      length of the slider.
  
  Returns
  -------
  Currentvalue
docstr_tok: ["Construct","a","new","Currentvalue","object","Parameters","--","--","--","--","--","arg","dict","of","properties","compatible","with","this","constructor","or","an","instance","of",":","class",":","`","plotly.graph_objs.layout.slider.Currentvalue","`","font","Sets","the","font","of","the","current","value","label","text",".","offset","The","amount","of","space",",","in","pixels",",","between","the","current","value","label","and","the","slider",".","prefix","When","currentvalue.visible","is","true",",","this","sets","the","prefix","of","the","label",".","suffix","When","currentvalue.visible","is","true",",","this","sets","the","suffix","of","the","label",".","visible","Shows","the","currently-selected","value","above","the","slider",".","xanchor","The","alignment","of","the","value","readout","relative","to","the","length","of","the","slider",".","Returns","--","--","--","-","Currentvalue"]
code: def __init__(
      self,
      arg=None,
      font=None,
      offset=None,
      prefix=None,
      suffix=None,
      visible=None,
      xanchor=None,
      **kwargs,
  ):
      """
      Construct a new Currentvalue object
  
      Parameters
      ----------
      arg
          dict of properties compatible with this constructor or
          an instance of
          :class:`plotly.graph_objs.layout.slider.Currentvalue`
      font
          Sets the font of the current value label text.
      offset
          The amount of space, in pixels, between the current
          value label and the slider.
      prefix
          When currentvalue.visible is true, this sets the prefix
          of the label.
      suffix
          When currentvalue.visible is true, this sets the suffix
          of the label.
      visible
          Shows the currently-selected value above the slider.
      xanchor
          The alignment of the value readout relative to the
          length of the slider.
  
      Returns
      -------
      Currentvalue
      """
      super(Currentvalue, self).__init__("currentvalue")
  
      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.slider.Currentvalue
  constructor must be a dict or
  an instance of :class:`plotly.graph_objs.layout.slider.Currentvalue`"""
          )
  
      # 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("font", None)
      _v = font if font is not None else _v
      if _v is not None:
          self["font"] = _v
      _v = arg.pop("offset", None)
      _v = offset if offset is not None else _v
      if _v is not None:
          self["offset"] = _v
      _v = arg.pop("prefix", None)
      _v = prefix if prefix is not None else _v
      if _v is not None:
          self["prefix"] = _v
      _v = arg.pop("suffix", None)
      _v = suffix if suffix is not None else _v
      if _v is not None:
          self["suffix"] = _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("xanchor", None)
      _v = xanchor if xanchor is not None else _v
      if _v is not None:
          self["xanchor"] = _v
  
      # Process unknown kwargs
      # ----------------------
      self._process_kwargs(**dict(arg, **kwargs))
  
      # Reset skip_invalid
      # ------------------
      self._skip_invalid = False
  
file_path: plotly.py/packages/python/plotly/plotly/graph_objs/layout/slider/_currentvalue.py
imports: from plotly.basedatatypes import BaseLayoutHierarchyType
  import copy
label_desc: Use image node_id 14 to create a new Currentvalue object from inherited base classes: _BaseLayoutHierarchyType with example: obj = Currentvalue(arg, font, offset, prefix, suffix, visible, xanchor)