
    .it"                     .    d dl mZ d dlZ G d de      Zy)    )BaseTraceHierarchyTypeNc                   (    e Zd ZdZdZh dZed        Zej                  d        Zed        Z	e	j                  d        Z	ed        Z
e
j                  d	        Z
ed
        Zej                  d        Zed        Zej                  d        Zed        Zej                  d        Zed        Zej                  d        Zed        Zej                  d        Zed        Zej                  d        Zed        Z	 	 	 	 	 	 	 	 	 	 d fd	Z xZS )Delta	indicatorzindicator.delta>	   fontprefixsuffixpositionrelative	reference
decreasing
increasingvalueformatc                     | d   S )a}  
        The 'decreasing' property is an instance of Decreasing
        that may be specified as:
          - An instance of :class:`plotly.graph_objs.indicator.delta.Decreasing`
          - A dict of string/value properties that will be passed
            to the Decreasing constructor

        Returns
        -------
        plotly.graph_objs.indicator.delta.Decreasing
        r    selfs    _/opt/house_gps_flutter/.venv/lib/python3.12/site-packages/plotly/graph_objs/indicator/_delta.pyr   zDelta.decreasing        L!!    c                     || d<   y )Nr   r   r   vals     r   r   zDelta.decreasing&        \r   c                     | d   S )a  
        Set the font used to display the delta

        The 'font' property is an instance of Font
        that may be specified as:
          - An instance of :class:`plotly.graph_objs.indicator.delta.Font`
          - A dict of string/value properties that will be passed
            to the Font constructor

        Returns
        -------
        plotly.graph_objs.indicator.delta.Font
        r   r   r   s    r   r   z
Delta.font*   s     F|r   c                     || d<   y )Nr   r   r   s     r   r   z
Delta.font;   s    Vr   c                     | d   S )a}  
        The 'increasing' property is an instance of Increasing
        that may be specified as:
          - An instance of :class:`plotly.graph_objs.indicator.delta.Increasing`
          - A dict of string/value properties that will be passed
            to the Increasing constructor

        Returns
        -------
        plotly.graph_objs.indicator.delta.Increasing
        r   r   r   s    r   r   zDelta.increasing?   r   r   c                     || d<   y )Nr   r   r   s     r   r   zDelta.increasingN   r   r   c                     | d   S )a*  
        Sets the position of delta with respect to the number.

        The 'position' property is an enumeration that may be specified as:
          - One of the following enumeration values:
                ['top', 'bottom', 'left', 'right']

        Returns
        -------
        Any
        r
   r   r   s    r   r
   zDelta.positionR   s     Jr   c                     || d<   y )Nr
   r   r   s     r   r
   zDelta.positiona       Zr   c                     | d   S )z
        Sets a prefix appearing before the delta.

        The 'prefix' property is a string and must be specified as:
          - A string
          - A number that will be converted to a string

        Returns
        -------
        str
        r   r   r   s    r   r   zDelta.prefixe        H~r   c                     || d<   y )Nr   r   r   s     r   r   zDelta.prefixt       Xr   c                     | d   S )a
  
        Sets the reference value to compute the delta. By default, it
        is set to the current value.

        The 'reference' property is a number and may be specified as:
          - An int or float

        Returns
        -------
        int|float
        r   r   r   s    r   r   zDelta.referencex   s     K  r   c                     || d<   y )Nr   r   r   s     r   r   zDelta.reference   s    [r   c                     | d   S )z
        Show relative change

        The 'relative' property is a boolean and must be specified as:
          - A boolean value: True or False

        Returns
        -------
        bool
        r   r   r   s    r   r   zDelta.relative   s     Jr   c                     || d<   y )Nr   r   r   s     r   r   zDelta.relative   r!   r   c                     | d   S )z
        Sets a suffix appearing next to the delta.

        The 'suffix' property is a string and must be specified as:
          - A string
          - A number that will be converted to a string

        Returns
        -------
        str
        r	   r   r   s    r   r	   zDelta.suffix   r#   r   c                     || d<   y )Nr	   r   r   s     r   r	   zDelta.suffix   r%   r   c                     | d   S )a  
        Sets the value formatting rule using d3 formatting mini-
        languages which are very similar to those in Python. For
        numbers, see:
        https://github.com/d3/d3-format/tree/v1.4.5#d3-format.

        The 'valueformat' property is a string and must be specified as:
          - A string
          - A number that will be converted to a string

        Returns
        -------
        str
        r   r   r   s    r   r   zDelta.valueformat   s      M""r   c                     || d<   y )Nr   r   r   s     r   r   zDelta.valueformat   s    !]r   c                      y)Na          decreasing
            :class:`plotly.graph_objects.indicator.delta.Decreasing
            ` instance or dict with compatible properties
        font
            Set the font used to display the delta
        increasing
            :class:`plotly.graph_objects.indicator.delta.Increasing
            ` instance or dict with compatible properties
        position
            Sets the position of delta with respect to the number.
        prefix
            Sets a prefix appearing before the delta.
        reference
            Sets the reference value to compute the delta. By
            default, it is set to the current value.
        relative
            Show relative change
        suffix
            Sets a suffix appearing next to the delta.
        valueformat
            Sets the value formatting rule using d3 formatting
            mini-languages which are very similar to those in
            Python. For numbers, see:
            https://github.com/d3/d3-format/tree/v1.4.5#d3-format.
        r   r   s    r   _prop_descriptionszDelta._prop_descriptions   s    r   c           	         t         |   d       d|v r|d   | _        y|i }nXt        || j                        r|j                         }n1t        |t              rt        j                  |      }nt        d      |j                  dd      | _        |j                  dd      | _        | j                  d	||       | j                  d
||       | j                  d||       | j                  d||       | j                  d||       | j                  d||       | j                  d||       | j                  d||	       | j                  d||
        | j                  di t        |fi | d| _        y)a  
        Construct a new Delta object

        Parameters
        ----------
        arg
            dict of properties compatible with this constructor or
            an instance of
            :class:`plotly.graph_objs.indicator.Delta`
        decreasing
            :class:`plotly.graph_objects.indicator.delta.Decreasing
            ` instance or dict with compatible properties
        font
            Set the font used to display the delta
        increasing
            :class:`plotly.graph_objects.indicator.delta.Increasing
            ` instance or dict with compatible properties
        position
            Sets the position of delta with respect to the number.
        prefix
            Sets a prefix appearing before the delta.
        reference
            Sets the reference value to compute the delta. By
            default, it is set to the current value.
        relative
            Show relative change
        suffix
            Sets a suffix appearing next to the delta.
        valueformat
            Sets the value formatting rule using d3 formatting
            mini-languages which are very similar to those in
            Python. For numbers, see:
            https://github.com/d3/d3-format/tree/v1.4.5#d3-format.

        Returns
        -------
        Delta
        delta_parentNzThe first argument to the plotly.graph_objs.indicator.Delta
constructor must be a dict or
an instance of :class:`plotly.graph_objs.indicator.Delta`skip_invalidF	_validateTr   r   r   r
   r   r   r   r	   r   r   )super__init__r2   
isinstance	__class__to_plotly_jsondict_copycopy
ValueErrorpop_skip_invalidr4   _set_property_process_kwargs)r   argr   r   r   r
   r   r   r   r	   r   kwargsr8   s               r   r6   zDelta.__init__   sg   h 	!!),DL;CT^^,$$&CT"**S/C = > >
 $ZZ>K6<j963-<j9:sH58S&1;Y7:sH58S&1=#{;3tC2623"r   )
NNNNNNNNNN)__name__
__module____qualname___parent_path_str	_path_str_valid_propspropertyr   setterr   r   r
   r   r   r   r	   r   r/   r6   __classcell__)r8   s   @r   r   r      s   "!I
L " " ! !    
[[  " " ! !     __    ]]  ! !         __    ]]  # #" " "  < R# R#r   r   )plotly.basedatatypesr   _BaseTraceHierarchyTyper<   r;   r   r   r   r   <module>rO      s    S m## m#r   