
    .i%                     .    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 )Gauge	indicatorzindicator.gauge>	   baraxisshapestepsbgcolor	thresholdbordercolorborderwidthstepdefaultsc                     | d   S )a_  
        The 'axis' property is an instance of Axis
        that may be specified as:
          - An instance of :class:`plotly.graph_objs.indicator.gauge.Axis`
          - A dict of string/value properties that will be passed
            to the Axis constructor

        Returns
        -------
        plotly.graph_objs.indicator.gauge.Axis
        r    selfs    _/opt/house_gps_flutter/.venv/lib/python3.12/site-packages/plotly/graph_objs/indicator/_gauge.pyr   z
Gauge.axis   s     F|    c                     || d<   y )Nr   r   r   vals     r   r   z
Gauge.axis&   s    Vr   c                     | d   S )a  
        Set the appearance of the gauge's value

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

        Returns
        -------
        plotly.graph_objs.indicator.gauge.Bar
        r   r   r   s    r   r   z	Gauge.bar*   s     E{r   c                     || d<   y )Nr   r   r   s     r   r   z	Gauge.bar;   s    Ur   c                     | d   S )a  
        Sets the gauge background color.

        The 'bgcolor' property is a color and may be specified as:
          - A hex string (e.g. '#ff0000')
          - An rgb/rgba string (e.g. 'rgb(255,0,0)')
          - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
          - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
          - A named CSS color: see https://plotly.com/python/css-colors/ for a list

        Returns
        -------
        str
        r   r   r   s    r   r   zGauge.bgcolor?   s      Ir   c                     || d<   y )Nr   r   r   s     r   r   zGauge.bgcolorQ   s    Yr   c                     | d   S )a  
        Sets the color of the border enclosing the gauge.

        The 'bordercolor' property is a color and may be specified as:
          - A hex string (e.g. '#ff0000')
          - An rgb/rgba string (e.g. 'rgb(255,0,0)')
          - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
          - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
          - A named CSS color: see https://plotly.com/python/css-colors/ for a list

        Returns
        -------
        str
        r   r   r   s    r   r   zGauge.bordercolorU   s      M""r   c                     || d<   y )Nr   r   r   s     r   r   zGauge.bordercolorg       !]r   c                     | d   S )z
        Sets the width (in px) of the border enclosing the gauge.

        The 'borderwidth' property is a number and may be specified as:
          - An int or float in the interval [0, inf]

        Returns
        -------
        int|float
        r   r   r   s    r   r   zGauge.borderwidthk   s     M""r   c                     || d<   y )Nr   r   r   s     r   r   zGauge.borderwidthy   r   r   c                     | d   S )z
        Set the shape of the gauge

        The 'shape' property is an enumeration that may be specified as:
          - One of the following enumeration values:
                ['angular', 'bullet']

        Returns
        -------
        Any
        r	   r   r   s    r   r	   zGauge.shape}        G}r   c                     || d<   y )Nr	   r   r   s     r   r	   zGauge.shape       Wr   c                     | d   S )a  
        The 'steps' property is a tuple of instances of
        Step that may be specified as:
          - A list or tuple of instances of plotly.graph_objs.indicator.gauge.Step
          - A list or tuple of dicts of string/value properties that
            will be passed to the Step constructor

        Returns
        -------
        tuple[plotly.graph_objs.indicator.gauge.Step]
        r
   r   r   s    r   r
   zGauge.steps   r#   r   c                     || d<   y )Nr
   r   r   s     r   r
   zGauge.steps   r%   r   c                     | d   S )a&  
        When used in a template (as
        layout.template.data.indicator.gauge.stepdefaults), sets the
        default property values to use for elements of
        indicator.gauge.steps

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

        Returns
        -------
        plotly.graph_objs.indicator.gauge.Step
        r   r   r   s    r   r   zGauge.stepdefaults   s    $ N##r   c                     || d<   y )Nr   r   r   s     r   r   zGauge.stepdefaults   s    "^r   c                     | d   S )ax  
        The 'threshold' property is an instance of Threshold
        that may be specified as:
          - An instance of :class:`plotly.graph_objs.indicator.gauge.Threshold`
          - A dict of string/value properties that will be passed
            to the Threshold constructor

        Returns
        -------
        plotly.graph_objs.indicator.gauge.Threshold
        r   r   r   s    r   r   zGauge.threshold   s     K  r   c                     || d<   y )Nr   r   r   s     r   r   zGauge.threshold   s    [r   c                      y)Na          axis
            :class:`plotly.graph_objects.indicator.gauge.Axis`
            instance or dict with compatible properties
        bar
            Set the appearance of the gauge's value
        bgcolor
            Sets the gauge background color.
        bordercolor
            Sets the color of the border enclosing the gauge.
        borderwidth
            Sets the width (in px) of the border enclosing the
            gauge.
        shape
            Set the shape of the gauge
        steps
            A tuple of
            :class:`plotly.graph_objects.indicator.gauge.Step`
            instances or dicts with compatible properties
        stepdefaults
            When used in a template (as
            layout.template.data.indicator.gauge.stepdefaults),
            sets the default property values to use for elements of
            indicator.gauge.steps
        threshold
            :class:`plotly.graph_objects.indicator.gauge.Threshold`
            instance or dict with compatible properties
        r   r   s    r   _prop_descriptionszGauge._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)aL  
        Construct a new Gauge object

        The gauge of the Indicator plot.

        Parameters
        ----------
        arg
            dict of properties compatible with this constructor or
            an instance of
            :class:`plotly.graph_objs.indicator.Gauge`
        axis
            :class:`plotly.graph_objects.indicator.gauge.Axis`
            instance or dict with compatible properties
        bar
            Set the appearance of the gauge's value
        bgcolor
            Sets the gauge background color.
        bordercolor
            Sets the color of the border enclosing the gauge.
        borderwidth
            Sets the width (in px) of the border enclosing the
            gauge.
        shape
            Set the shape of the gauge
        steps
            A tuple of
            :class:`plotly.graph_objects.indicator.gauge.Step`
            instances or dicts with compatible properties
        stepdefaults
            When used in a template (as
            layout.template.data.indicator.gauge.stepdefaults),
            sets the default property values to use for elements of
            indicator.gauge.steps
        threshold
            :class:`plotly.graph_objects.indicator.gauge.Threshold`
            instance or dict with compatible properties

        Returns
        -------
        Gauge
        gauge_parentNzThe first argument to the plotly.graph_objs.indicator.Gauge
constructor must be a dict or
an instance of :class:`plotly.graph_objs.indicator.Gauge`skip_invalidF	_validateTr   r   r   r   r   r	   r
   r   r   r   )super__init__r0   
isinstance	__class__to_plotly_jsondict_copycopy
ValueErrorpop_skip_invalidr2   _set_property_process_kwargs)r   argr   r   r   r   r   r	   r
   r   r   kwargsr6   s               r   r4   zGauge.__init__   sg   p 	!!),DL;CT^^,$$&CT"**S/C = > >
 $ZZ>K663-5#s+9c73=#{;=#{;7C/7C/>3=;Y7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-   r4   __classcell__)r6   s   @r   r   r      s   "!I
L   
[[     	ZZ   " ^^  # #" " " # # " "   \\    \\  $ $& # # ! !      @ V# V#r   r   )plotly.basedatatypesr   _BaseTraceHierarchyTyper:   r9   r   r   r   r   <module>rM      s    S {## {#r   