
    -Phw                      6    d dl mZ d dlZ G d de          ZdS )    )BaseLayoutHierarchyTypeNc                       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	 	 	 	 	 	 	 d fd	Z xZS )
Hoverlabellayoutzlayout.hoverlabel>   fontalignbgcolor
namelengthbordercolorgrouptitlefontc                     | 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']

        Returns
        -------
        Any
        r    selfs    d/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/plotly/graph_objs/layout/_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 )a  
        Sets the background color of all hover labels on graph

        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Hoverlabel.bgcolor*   s      Ir   c                     || d<   d S )Nr	   r   r   s     r   r	   zHoverlabel.bgcolor<   s    Yr   c                     | d         S )a  
        Sets the border color of all hover labels on graph.

        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Hoverlabel.bordercolor@   s      M""r   c                     || d<   d S )Nr   r   r   s     r   r   zHoverlabel.bordercolorR   s    !]r   c                     | d         S )a  
        Sets the default hover label font used by all traces on the
        graph.

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

        Returns
        -------
        plotly.graph_objs.layout.hoverlabel.Font
        r   r   r   s    r   r   zHoverlabel.fontV   s      F|r   c                     || d<   d S )Nr   r   r   s     r   r   zHoverlabel.fonth   s    Vr   c                     | d         S )a  
        Sets the font for group titles in hover (unified modes).
        Defaults to `hoverlabel.font`.

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

        Returns
        -------
        plotly.graph_objs.layout.hoverlabel.Grouptitlefont
        r   r   r   s    r   r   zHoverlabel.grouptitlefontl   s      $%%r   c                     || d<   d S )Nr   r   r   s     r   r   zHoverlabel.grouptitlefont~   s    !$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]

        Returns
        -------
        int
        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   s     \r   c                     dS )Na.          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
        bgcolor
            Sets the background color of all hover labels on graph
        bordercolor
            Sets the border color of all hover labels on graph.
        font
            Sets the default hover label font used by all traces on
            the graph.
        grouptitlefont
            Sets the font for group titles in hover (unified
            modes). Defaults to `hoverlabel.font`.
        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.
        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||            | j        di t          |fi | d| _        dS )aW  
        Construct a new Hoverlabel object

        Parameters
        ----------
        arg
            dict of properties compatible with this constructor or
            an instance of
            :class:`plotly.graph_objs.layout.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
        bgcolor
            Sets the background color of all hover labels on graph
        bordercolor
            Sets the border color of all hover labels on graph.
        font
            Sets the default hover label font used by all traces on
            the graph.
        grouptitlefont
            Sets the font for group titles in hover (unified
            modes). Defaults to `hoverlabel.font`.
        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.

        Returns
        -------
        Hoverlabel
        
hoverlabel_parentNzThe first argument to the plotly.graph_objs.layout.Hoverlabel
constructor must be a dict or
an instance of :class:`plotly.graph_objs.layout.Hoverlabel`skip_invalidF	_validateTr   r	   r   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   r   r
   kwargsr*   s
            r   r(   zHoverlabel.__init__   s   ^ 	&&&!),DLF;CCT^,, 
	$$&&CCT"" 	*S//CC?   $ZZ>>K667C///9c7333=#{;;;63---+S.AAA<j99933tC22622333"r   )NNNNNNN)__name__
__module____qualname___parent_path_str	_path_str_valid_propspropertyr   setterr	   r   r   r   r
   r!   r(   __classcell__)r*   s   @r   r   r      s       #I  L   X  \  \   X" ^  ^ # # X#" " " "   X" 
[  [ & & X&" % % % " " X"& ! ! !   X8 L# L# L# L# L# L# L# L# L# L#r   r   )plotly.basedatatypesr   _BaseLayoutHierarchyTyper.   r-   r   r   r   r   <module>rA      se    U T T T T T    y# y# y# y# y#) y# y# y# y# y#r   