
    ~Zi
                        S r SSKJr  SSKJr  SSKJr  SSKJr  SSK	J
r
  SSKJr   " S S	\5      r " S
 S\5      r " S S\5      r " S S\5      r " S S\5      rg)zData point-related objects.    )annotations)Sequence)	DataLabel)Marker)ChartFormat)lazypropertyc                  2   ^  \ rS rSrSrU 4S jrS rSrU =r$ )_BasePoints   zF
Sequence providing access to the individual data points in a series.
c                B   > [         [        U ]  5         Xl        Xl        g N)superr
   __init___element_ser)selfser	__class__s     j/var/www/eduai.edurigo.com/question_generate/ques_gen_env/lib/python3.13/site-packages/pptx/chart/point.pyr   _BasePoints.__init__   s    k4)+	    c                v    US:  d  XR                  5       :  a  [        S5      e[        U R                  U5      $ )Nr   zpoint index out of range)__len__
IndexErrorPointr   )r   idxs     r   __getitem___BasePoints.__getitem__   s1    7c\\^+788TYY$$r   )r   r   )	__name__
__module____qualname____firstlineno____doc__r   r   __static_attributes____classcell__r   s   @r   r
   r
      s    
% %r   r
   c                      \ rS rSrSrS rSrg)BubblePoints   zU
Sequence providing access to the individual data points in
a |BubbleSeries| object.
c                    [        U R                  R                  U R                  R                  U R                  R                  5      $ r   )minr   xVal_ptCount_valyVal_ptCount_valbubbleSize_ptCount_valr   s    r   r   BubblePoints.__len__#   s6    II&&II&&II,,
 	
r    Nr   r    r!   r"   r#   r   r$   r1   r   r   r(   r(      s    

r   r(   c                      \ rS rSrSrS rSrg)CategoryPoints+   z
Sequence providing access to individual |Point| objects, each
representing the visual properties of a data point in the specified
category series.
c                .    U R                   R                  $ r   )r   cat_ptCount_valr/   s    r   r   CategoryPoints.__len__2   s    yy(((r   r1   Nr2   r1   r   r   r4   r4   +   s    )r   r4   c                  \   ^  \ rS rSrSrU 4S jr\S 5       r\S 5       r\S 5       r	Sr
U =r$ )r   6   z
Provides access to the properties of an individual data point in
a series, such as the visual properties of its marker and the text and
font of its data label.
c                N   > [         [        U ]  5         Xl        Xl        X l        g r   )r   r   r   r   r   _idx)r   r   r   r   s      r   r   Point.__init__=   s    eT#%		r   c                B    [        U R                  U R                  5      $ )zC
The |DataLabel| object representing the label on this data point.
)r   r   r<   r/   s    r   
data_labelPoint.data_labelC   s    
 DII..r   c                b    U R                   R                  U R                  5      n[        U5      $ )zy
The |ChartFormat| object providing access to the shape formatting
properties of this data point, such as line and fill.
)r   get_or_add_dPt_for_pointr<   r   r   dPts     r   formatPoint.formatJ   s'     ii00;3r   c                b    U R                   R                  U R                  5      n[        U5      $ )z
The |Marker| instance for this point, providing access to the visual
properties of the data point marker, such as fill and line. Setting
these properties overrides any value set at the series level.
)r   rB   r<   r   rC   s     r   markerPoint.markerS   s&     ii00;c{r   )r   r<   r   )r   r    r!   r"   r#   r   r   r?   rE   rH   r$   r%   r&   s   @r   r   r   6   sI     / /      r   r   c                      \ rS rSrSrS rSrg)XyPoints^   zR
Sequence providing access to the individual data points in an |XySeries|
object.
c                j    [        U R                  R                  U R                  R                  5      $ r   )r+   r   r,   r-   r/   s    r   r   XyPoints.__len__d   s#    499--tyy/I/IJJr   r1   Nr2   r1   r   r   rK   rK   ^   s    
Kr   rK   N)r#   
__future__r   collections.abcr   pptx.chart.datalabelr   pptx.chart.markerr   pptx.dml.chtfmtr   	pptx.utilr   r
   r(   r4   objectr   rK   r1   r   r   <module>rV      sY    ! " $ * $ ' "%( % 
; 
)[ )%F %PK{ Kr   