
    ~i                     6    d dl mZ d dlZ G d de          ZdS )    )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	 d fd	Z xZS )Number	indicatorzindicator.number>   fontprefixsuffixvalueformatc                     | d         S )a  
        Set the font used to display main number

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

        Returns
        -------
        plotly.graph_objs.indicator.number.Font
        r    selfs    W/home/jrussi/.local/lib/python3.11/site-packages/plotly/graph_objs/indicator/_number.pyr   zNumber.font   s     F|    c                     || d<   d S )Nr   r   r   vals     r   r   zNumber.font   s    Vr   c                     | d         S )z
        Sets a prefix appearing before the number.

        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Number.prefix"        H~r   c                     || d<   d S )Nr   r   r   s     r   r   zNumber.prefix1       Xr   c                     | d         S )z
        Sets a suffix appearing next to the number.

        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Number.suffix5   r   r   c                     || d<   d S )Nr	   r   r   s     r   r	   zNumber.suffixD   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Number.valueformatH   s      M""r   c                     || d<   d S )Nr
   r   r   s     r   r
   zNumber.valueformatZ   s    !]r   c                     dS )Na          font
            Set the font used to display main number
        prefix
            Sets a prefix appearing before the number.
        suffix
            Sets a suffix appearing next to the number.
        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Number._prop_descriptions^   s     r   Nc           	         t                                          d           d|v r|d         | _        dS |i }nct          || j                  r|                                }n9t          |t                    rt          j        |          }nt          d          |
                    dd          | _        |
                    dd          | _        |                     d	||           |                     d
||           |                     d||           |                     d||            | j        di t          |fi | d| _        dS )a  
        Construct a new Number object

        Parameters
        ----------
        arg
            dict of properties compatible with this constructor or
            an instance of
            :class:`plotly.graph_objs.indicator.Number`
        font
            Set the font used to display main number
        prefix
            Sets a prefix appearing before the number.
        suffix
            Sets a suffix appearing next to the number.
        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
        -------
        Number
        number_parentNzThe first argument to the plotly.graph_objs.indicator.Number
constructor must be a dict or
an instance of :class:`plotly.graph_objs.indicator.Number`skip_invalidF	_validateTr   r   r	   r
   r   )super__init__r    
isinstance	__class__to_plotly_jsondict_copycopy
ValueErrorpop_skip_invalidr"   _set_property_process_kwargs)r   argr   r   r	   r
   kwargsr&   s          r   r$   zNumber.__init__n   sh   8 	"""!),DLF;CCT^,, 	?$$&&CCT"" 	?*S//CC > ? ? ?
 $ZZ>>K6663---8S&1118S&111=#{;;;33tC22622333"r   )NNNNN)__name__
__module____qualname___parent_path_str	_path_str_valid_propspropertyr   setterr   r	   r
   r   r$   __classcell__)r&   s   @r   r   r      sU       ""I>>>L  X  
[  [   X ]  ]   X ]  ] # # X#" " " "   X  JN5# 5# 5# 5# 5# 5# 5# 5# 5# 5#r   r   )plotly.basedatatypesr   _BaseTraceHierarchyTyper*   r)   r   r   r   r   <module>r=      se    S R R R R R    [# [# [# [# [#$ [# [# [# [# [#r   