
    -Ph1                     6    d dl mZ d dlZ G d de          ZdS )    )BaseTraceHierarchyTypeNc                   x    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ej        d             Zed             Z	 	 	 	 	 	 	 	 	 	 	 d fd	Z xZS )	Dimensionparcatszparcats.dimension>
   labelvaluesvisibleticktext	valuessrcticktextsrcdisplayindexcategoryarraycategoryordercategoryarraysrcc                     | d         S )ai  
        Sets the order in which categories in this dimension appear.
        Only has an effect if `categoryorder` is set to "array". Used
        with `categoryorder`.

        The 'categoryarray' property is an array that may be specified as a tuple,
        list, numpy array, or pandas Series

        Returns
        -------
        numpy.ndarray
        r    selfs    d/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/plotly/graph_objs/parcats/_dimension.pyr   zDimension.categoryarray   s     O$$    c                     || d<   d S )Nr   r   r   vals     r   r   zDimension.categoryarray)        #_r   c                     | d         S )a  
        Sets the source reference on Chart Studio Cloud for
        `categoryarray`.

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

        Returns
        -------
        str
        r   r   r   s    r   r   zDimension.categoryarraysrc-   s     &''r   c                     || d<   d S )Nr   r   r   s     r   r   zDimension.categoryarraysrc<   s    #&   r   c                     | d         S )a  
        Specifies the ordering logic for the categories in the
        dimension. By default, plotly uses "trace", which specifies the
        order that is present in the data supplied. Set `categoryorder`
        to *category ascending* or *category descending* if order
        should be determined by the alphanumerical order of the
        category names. Set `categoryorder` to "array" to derive the
        ordering from the attribute `categoryarray`. If a category is
        not found in the `categoryarray` array, the sorting behavior
        for that attribute will be identical to the "trace" mode. The
        unspecified categories will follow the categories in
        `categoryarray`.

        The 'categoryorder' property is an enumeration that may be specified as:
          - One of the following enumeration values:
                ['trace', 'category ascending', 'category descending',
                'array']

        Returns
        -------
        Any
        r   r   r   s    r   r   zDimension.categoryorder@   s    0 O$$r   c                     || d<   d S )Nr   r   r   s     r   r   zDimension.categoryorderZ   r   r   c                     | d         S )a*  
        The display index of dimension, from left to right, zero
        indexed, defaults to dimension index.

        The 'displayindex' property is a integer and may be specified as:
          - An int (or float that will be cast to an int)

        Returns
        -------
        int
        r   r   r   s    r   r   zDimension.displayindex^   s     N##r   c                     || d<   d S )Nr   r   r   s     r   r   zDimension.displayindexm   s    "^r   c                     | d         S )z
        The shown name of the dimension.

        The 'label' 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Dimension.labelq   s     G}r   c                     || d<   d S )Nr   r   r   s     r   r   zDimension.label   s    Wr   c                     | d         S )a  
        Sets alternative tick labels for the categories in this
        dimension. Only has an effect if `categoryorder` is set to
        "array". Should be an array the same length as `categoryarray`
        Used with `categoryorder`.

        The 'ticktext' property is an array that may be specified as a tuple,
        list, numpy array, or pandas Series

        Returns
        -------
        numpy.ndarray
        r
   r   r   s    r   r
   zDimension.ticktext   s     Jr   c                     || d<   d S )Nr
   r   r   s     r   r
   zDimension.ticktext   s    Zr   c                     | d         S )z
        Sets the source reference on Chart Studio Cloud for `ticktext`.

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

        Returns
        -------
        str
        r   r   r   s    r   r   zDimension.ticktextsrc   s     M""r   c                     || d<   d S )Nr   r   r   s     r   r   zDimension.ticktextsrc   s    !]r   c                     | d         S )a  
        Dimension values. `values[n]` represents the category value of
        the `n`th point in the dataset, therefore the `values` vector
        for all dimensions must be the same (longer vectors will be
        truncated).

        The 'values' property is an array that may be specified as a tuple,
        list, numpy array, or pandas Series

        Returns
        -------
        numpy.ndarray
        r   r   r   s    r   r   zDimension.values   s     H~r   c                     || d<   d S )Nr   r   r   s     r   r   zDimension.values   s    Xr   c                     | d         S )z
        Sets the source reference on Chart Studio Cloud for `values`.

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

        Returns
        -------
        str
        r   r   r   s    r   r   zDimension.valuessrc   s     K  r   c                     || d<   d S )Nr   r   r   s     r   r   zDimension.valuessrc   s    [r   c                     | d         S )z
        Shows the dimension when set to `true` (the default). Hides the
        dimension for `false`.

        The 'visible' property must be specified as a bool
        (either True, or False)

        Returns
        -------
        bool
        r	   r   r   s    r   r	   zDimension.visible   s     Ir   c                     || d<   d S )Nr	   r   r   s     r   r	   zDimension.visible   s    Yr   c                     dS )Na          categoryarray
            Sets the order in which categories in this dimension
            appear. Only has an effect if `categoryorder` is set to
            "array". Used with `categoryorder`.
        categoryarraysrc
            Sets the source reference on Chart Studio Cloud for
            `categoryarray`.
        categoryorder
            Specifies the ordering logic for the categories in the
            dimension. By default, plotly uses "trace", which
            specifies the order that is present in the data
            supplied. Set `categoryorder` to *category ascending*
            or *category descending* if order should be determined
            by the alphanumerical order of the category names. Set
            `categoryorder` to "array" to derive the ordering from
            the attribute `categoryarray`. If a category is not
            found in the `categoryarray` array, the sorting
            behavior for that attribute will be identical to the
            "trace" mode. The unspecified categories will follow
            the categories in `categoryarray`.
        displayindex
            The display index of dimension, from left to right,
            zero indexed, defaults to dimension index.
        label
            The shown name of the dimension.
        ticktext
            Sets alternative tick labels for the categories in this
            dimension. Only has an effect if `categoryorder` is set
            to "array". Should be an array the same length as
            `categoryarray` Used with `categoryorder`.
        ticktextsrc
            Sets the source reference on Chart Studio Cloud for
            `ticktext`.
        values
            Dimension values. `values[n]` represents the category
            value of the `n`th point in the dataset, therefore the
            `values` vector for all dimensions must be the same
            (longer vectors will be truncated).
        valuessrc
            Sets the source reference on Chart Studio Cloud for
            `values`.
        visible
            Shows the dimension when set to `true` (the default).
            Hides the dimension for `false`.
        r   r   s    r   _prop_descriptionszDimension._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||
           |                     d||            | j        di t          |fi | d| _        dS )a	  
        Construct a new Dimension object

        The dimensions (variables) of the parallel categories diagram.

        Parameters
        ----------
        arg
            dict of properties compatible with this constructor or
            an instance of
            :class:`plotly.graph_objs.parcats.Dimension`
        categoryarray
            Sets the order in which categories in this dimension
            appear. Only has an effect if `categoryorder` is set to
            "array". Used with `categoryorder`.
        categoryarraysrc
            Sets the source reference on Chart Studio Cloud for
            `categoryarray`.
        categoryorder
            Specifies the ordering logic for the categories in the
            dimension. By default, plotly uses "trace", which
            specifies the order that is present in the data
            supplied. Set `categoryorder` to *category ascending*
            or *category descending* if order should be determined
            by the alphanumerical order of the category names. Set
            `categoryorder` to "array" to derive the ordering from
            the attribute `categoryarray`. If a category is not
            found in the `categoryarray` array, the sorting
            behavior for that attribute will be identical to the
            "trace" mode. The unspecified categories will follow
            the categories in `categoryarray`.
        displayindex
            The display index of dimension, from left to right,
            zero indexed, defaults to dimension index.
        label
            The shown name of the dimension.
        ticktext
            Sets alternative tick labels for the categories in this
            dimension. Only has an effect if `categoryorder` is set
            to "array". Should be an array the same length as
            `categoryarray` Used with `categoryorder`.
        ticktextsrc
            Sets the source reference on Chart Studio Cloud for
            `ticktext`.
        values
            Dimension values. `values[n]` represents the category
            value of the `n`th point in the dataset, therefore the
            `values` vector for all dimensions must be the same
            (longer vectors will be truncated).
        valuessrc
            Sets the source reference on Chart Studio Cloud for
            `values`.
        visible
            Shows the dimension when set to `true` (the default).
            Hides the dimension for `false`.

        Returns
        -------
        Dimension
        
dimensions_parentNzThe first argument to the plotly.graph_objs.parcats.Dimension
constructor must be a dict or
an instance of :class:`plotly.graph_objs.parcats.Dimension`skip_invalidF	_validateTr   r   r   r   r   r
   r   r   r   r	   r   )super__init__r1   
isinstance	__class__to_plotly_jsondict_copycopy
ValueErrorpop_skip_invalidr3   _set_property_process_kwargs)r   argr   r   r   r   r   r
   r   r   r   r	   kwargsr7   s                r   r5   zDimension.__init__  s   V 	&&&!),DLF;CCT^,, 
	$$&&CCT"" 	*S//CC?   $ZZ>>K66?C???-s4DEEE?C???>3===7C///:sH555=#{;;;8S&111;Y7779c733333tC22622333"r   )NNNNNNNNNNN)__name__
__module____qualname___parent_path_str	_path_str_valid_propspropertyr   setterr   r   r   r   r
   r   r   r   r	   r.   r5   __classcell__)r7   s   @r   r   r      s        #I  L % % X% $ $ $ ( ( X( ' ' ' % % X%2 $ $ $ $ $ X$ # # #   X \  \     X   _  _ # # X# " " "   X  ]  ] ! ! X!         X ^  ^ . . X.d l# l# l# l# l# l# l# l# l# l#r   r   )plotly.basedatatypesr   _BaseTraceHierarchyTyper;   r:   r   r   r   r   <module>rN      se    S R R R R R    z# z# z# z# z#' z# z# z# z# z#r   