
    -Ph)                     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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 )
Hoverlabelhistogram2dzhistogram2d.hoverlabel>	   fontalignbgcoloralignsrc
bgcolorsrc
namelengthbordercolornamelengthsrcbordercolorsrcc                     | d         S )a  
        Sets the horizontal alignment of the text content within hover
        label box. Has an effect only if the hover label text spans
        more two or more lines

        The 'align' property is an enumeration that may be specified as:
          - One of the following enumeration values:
                ['left', 'right', 'auto']
          - A tuple, list, or one-dimensional numpy array of the above

        Returns
        -------
        Any|numpy.ndarray
        r    selfs    i/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/plotly/graph_objs/histogram2d/_hoverlabel.pyr   zHoverlabel.align   s      G}    c                     || d<   d S )Nr   r   r   vals     r   r   zHoverlabel.align*   s    Wr   c                     | d         S )z
        Sets the source reference on Chart Studio Cloud for `align`.

        The 'alignsrc' property must be specified as a string or
        as a plotly.grid_objs.Column object

        Returns
        -------
        str
        r
   r   r   s    r   r
   zHoverlabel.alignsrc.   s     Jr   c                     || d<   d S )Nr
   r   r   s     r   r
   zHoverlabel.alignsrc<   s    Zr   c                     | d         S )a!  
        Sets the background color of the hover labels for this trace

        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
          - A list or array of any of the above

        Returns
        -------
        str|numpy.ndarray
        r	   r   r   s    r   r	   zHoverlabel.bgcolor@   s    " Ir   c                     || d<   d S )Nr	   r   r   s     r   r	   zHoverlabel.bgcolorS   s    Yr   c                     | d         S )z
        Sets the source reference on Chart Studio Cloud for `bgcolor`.

        The 'bgcolorsrc' property must be specified as a string or
        as a plotly.grid_objs.Column object

        Returns
        -------
        str
        r   r   r   s    r   r   zHoverlabel.bgcolorsrcW   s     L!!r   c                     || d<   d S )Nr   r   r   s     r   r   zHoverlabel.bgcolorsrce        \r   c                     | d         S )a"  
        Sets the border color of the hover labels for this trace.

        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
          - A list or array of any of the above

        Returns
        -------
        str|numpy.ndarray
        r   r   r   s    r   r   zHoverlabel.bordercolori   s    " M""r   c                     || d<   d S )Nr   r   r   s     r   r   zHoverlabel.bordercolor|   s    !]r   c                     | d         S )z
        Sets the source reference on Chart Studio Cloud for
        `bordercolor`.

        The 'bordercolorsrc' property must be specified as a string or
        as a plotly.grid_objs.Column object

        Returns
        -------
        str
        r   r   r   s    r   r   zHoverlabel.bordercolorsrc   s     $%%r   c                     || d<   d S )Nr   r   r   s     r   r   zHoverlabel.bordercolorsrc   s    !$r   c                     | d         S )a  
        Sets the font used in hover labels.

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

        Returns
        -------
        plotly.graph_objs.histogram2d.hoverlabel.Font
        r   r   r   s    r   r   zHoverlabel.font   s     F|r   c                     || d<   d S )Nr   r   r   s     r   r   zHoverlabel.font   s    Vr   c                     | d         S )a  
        Sets the default length (in number of characters) of the trace
        name in the hover labels for all traces. -1 shows the whole
        name regardless of length. 0-3 shows the first 0-3 characters,
        and an integer >3 will show the whole name if it is less than
        that many characters, but if it is longer, will truncate to
        `namelength - 3` characters and add an ellipsis.

        The 'namelength' property is a integer and may be specified as:
          - An int (or float that will be cast to an int)
            in the interval [-1, 9223372036854775807]
          - A tuple, list, or one-dimensional numpy array of the above

        Returns
        -------
        int|numpy.ndarray
        r   r   r   s    r   r   zHoverlabel.namelength   s    & L!!r   c                     || d<   d S )Nr   r   r   s     r   r   zHoverlabel.namelength   r   r   c                     | d         S )z
        Sets the source reference on Chart Studio Cloud for
        `namelength`.

        The 'namelengthsrc' property must be specified as a string or
        as a plotly.grid_objs.Column object

        Returns
        -------
        str
        r   r   r   s    r   r   zHoverlabel.namelengthsrc   s     O$$r   c                     || d<   d S )Nr   r   r   s     r   r   zHoverlabel.namelengthsrc   s     #_r   c                     dS )NaR          align
            Sets the horizontal alignment of the text content
            within hover label box. Has an effect only if the hover
            label text spans more two or more lines
        alignsrc
            Sets the source reference on Chart Studio Cloud for
            `align`.
        bgcolor
            Sets the background color of the hover labels for this
            trace
        bgcolorsrc
            Sets the source reference on Chart Studio Cloud for
            `bgcolor`.
        bordercolor
            Sets the border color of the hover labels for this
            trace.
        bordercolorsrc
            Sets the source reference on Chart Studio Cloud for
            `bordercolor`.
        font
            Sets the font used in hover labels.
        namelength
            Sets the default length (in number of characters) of
            the trace name in the hover labels for all traces. -1
            shows the whole name regardless of length. 0-3 shows
            the first 0-3 characters, and an integer >3 will show
            the whole name if it is less than that many characters,
            but if it is longer, will truncate to `namelength - 3`
            characters and add an ellipsis.
        namelengthsrc
            Sets the source reference on Chart Studio Cloud for
            `namelength`.
        r   r   s    r   _prop_descriptionszHoverlabel._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||           |                     d||           |                     d||           |                     d||           |                     d||	           |                     d||
            | j        di t          |fi | d| _        dS )a  
        Construct a new Hoverlabel object

        Parameters
        ----------
        arg
            dict of properties compatible with this constructor or
            an instance of
            :class:`plotly.graph_objs.histogram2d.Hoverlabel`
        align
            Sets the horizontal alignment of the text content
            within hover label box. Has an effect only if the hover
            label text spans more two or more lines
        alignsrc
            Sets the source reference on Chart Studio Cloud for
            `align`.
        bgcolor
            Sets the background color of the hover labels for this
            trace
        bgcolorsrc
            Sets the source reference on Chart Studio Cloud for
            `bgcolor`.
        bordercolor
            Sets the border color of the hover labels for this
            trace.
        bordercolorsrc
            Sets the source reference on Chart Studio Cloud for
            `bordercolor`.
        font
            Sets the font used in hover labels.
        namelength
            Sets the default length (in number of characters) of
            the trace name in the hover labels for all traces. -1
            shows the whole name regardless of length. 0-3 shows
            the first 0-3 characters, and an integer >3 will show
            the whole name if it is less than that many characters,
            but if it is longer, will truncate to `namelength - 3`
            characters and add an ellipsis.
        namelengthsrc
            Sets the source reference on Chart Studio Cloud for
            `namelength`.

        Returns
        -------
        Hoverlabel
        
hoverlabel_parentNzThe first argument to the plotly.graph_objs.histogram2d.Hoverlabel
constructor must be a dict or
an instance of :class:`plotly.graph_objs.histogram2d.Hoverlabel`skip_invalidF	_validateTr   r
   r	   r   r   r   r   r   r   r   )super__init__r.   
isinstance	__class__to_plotly_jsondict_copycopy
ValueErrorpop_skip_invalidr0   _set_property_process_kwargs)r   argr   r
   r	   r   r   r   r   r   r   kwargsr4   s               r   r2   zHoverlabel.__init__   s   x 	&&&!),DLF;CCT^,, 
	$$&&CCT"" 	*S//CCD   $ZZ>>K667C///:sH5559c7333<j999=#{;;;+S.AAA63---<j999?C???33tC22622333"r   )
NNNNNNNNNN)__name__
__module____qualname___parent_path_str	_path_str_valid_propspropertyr   setterr
   r	   r   r   r   r   r   r   r+   r2   __classcell__)r4   s   @r   r   r      s       $(I
 
 
L   X" \  \     X  _  _   X$ ^  ^ " " X" ! ! ! # # X#$ " " " & & X& % % %   X  
[  [ " " X"( ! ! ! % % X% $ $ $ " " X"L \# \# \# \# \# \# \# \# \# \#r   r   )plotly.basedatatypesr   _BaseTraceHierarchyTyper8   r7   r   r   r   r   <module>rK      se    S R R R R R    M# M# M# M# M#( M# M# M# M# M#r   