B
    &[_                 @   s(   d dl mZ d dlZG dd deZdS )    )BaseTraceHierarchyTypeNc                   s   e Zd ZdZdZdddhZedd Zejdd Zed	d
 Z	e	jdd
 Z	edd Z
e
jdd Z
edd Zd fdd	Z  ZS )TitleZ	indicatorzindicator.titlealignfonttextc             C   s   | d S )az  
        Sets the horizontal alignment of the title. It defaults to
        `center` except for bullet charts for which it defaults to
        right.
    
        The 'align' property is an enumeration that may be specified as:
          - One of the following enumeration values:
                ['left', 'center', 'right']

        Returns
        -------
        Any
        r    )selfr   r   F/tmp/pip-install-l29rncou/plotly/plotly/graph_objs/indicator/_title.pyr      s    zTitle.alignc             C   s   || d< d S )Nr   r   )r   valr   r   r	   r       s    c             C   s   | d S )a  
        Set the font used to display the title
    
        The 'font' property is an instance of Font
        that may be specified as:
          - An instance of :class:`plotly.graph_objs.indicator.title.Font`
          - A dict of string/value properties that will be passed
            to the Font constructor
    
            Supported dict properties:
                
                color
    
                family
                    HTML font family - the typeface that will be
                    applied by the web browser. The web browser
                    will only be able to apply a font if it is
                    available on the system which it operates.
                    Provide multiple font families, separated by
                    commas, to indicate the preference in which to
                    apply fonts if they aren't available on the
                    system. The Chart Studio Cloud (at
                    https://chart-studio.plotly.com or on-premise)
                    generates images on a server, where only a
                    select number of fonts are installed and
                    supported. These include "Arial", "Balto",
                    "Courier New", "Droid Sans",, "Droid Serif",
                    "Droid Sans Mono", "Gravitas One", "Old
                    Standard TT", "Open Sans", "Overpass", "PT Sans
                    Narrow", "Raleway", "Times New Roman".
                size

        Returns
        -------
        plotly.graph_objs.indicator.title.Font
        r   r   )r   r   r   r	   r   &   s    &z
Title.fontc             C   s   || d< d S )Nr   r   )r   r
   r   r   r	   r   N   s    c             C   s   | d S )z
        Sets the title of this indicator.
    
        The 'text' 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   r   r   r	   r   T   s    z
Title.textc             C   s   || d< d S )Nr   r   )r   r
   r   r   r	   r   c   s    c             C   s   dS )Na2          align
            Sets the horizontal alignment of the title. It defaults
            to `center` except for bullet charts for which it
            defaults to right.
        font
            Set the font used to display the title
        text
            Sets the title of this indicator.
        r   )r   r   r   r	   _prop_descriptionsi   s    zTitle._prop_descriptionsNc                s(  t t| d d|kr&|d | _dS |dkr4i }n4t|| jrJ| }nt|tr`t	|}nt
d|dd| _|dd| _|d	d}|dk	r|n|}|dk	r|| d	< |d
d}|dk	r|n|}|dk	r|| d
< |dd}|dk	r|n|}|dk	r
|| d< | jf t|f| d| _dS )aW  
        Construct a new Title object
        
        Parameters
        ----------
        arg
            dict of properties compatible with this constructor or
            an instance of
            :class:`plotly.graph_objs.indicator.Title`
        align
            Sets the horizontal alignment of the title. It defaults
            to `center` except for bullet charts for which it
            defaults to right.
        font
            Set the font used to display the title
        text
            Sets the title of this indicator.

        Returns
        -------
        Title
        title_parentNzThe first argument to the plotly.graph_objs.indicator.Title 
constructor must be a dict or 
an instance of :class:`plotly.graph_objs.indicator.Title`Zskip_invalidF	_validateTr   r   r   )superr   __init__r   
isinstance	__class__Zto_plotly_jsondict_copycopy
ValueErrorpopZ_skip_invalidr   Z_process_kwargs)r   argr   r   r   kwargsZ_v)r   r   r	   r   v   s8    



zTitle.__init__)NNNN)__name__
__module____qualname__Z_parent_path_strZ	_path_strZ_valid_propspropertyr   setterr   r   r   r   __classcell__r   r   )r   r	   r      s   
(r   )Zplotly.basedatatypesr   Z_BaseTraceHierarchyTyper   r   r   r   r   r   r	   <module>   s   