ó
    ˆ*£h­  ã                  óÐ   • S r SSKJr  SSKJr  SSKJr  SSKJrJ	r	J
r
JrJrJr   " S S\5      r " S S	\5      r " S
 S\5      r " S S\5      r " S S\5      r " S S\5      rg)zSeries-related oxml objects.é    )Úannotations)ÚCT_DLbls)ÚXsdUnsignedInt)ÚBaseOxmlElementÚOneAndOnlyOneÚOxmlElementÚRequiredAttributeÚ
ZeroOrMoreÚ	ZeroOrOnec                  ó6   • \ rS rSrSr\" SSS9r\S 5       rSr	g)ÚCT_AxDataSourceé   zd
``<c:cat>`` custom element class used in category charts to specify
category labels and hierarchy.
zc:multiLvlStrRef© ©Ú
successorsc                ó$   • U R                  S5      $ )zï
Return a list containing the `c:lvl` descendent elements in document
order. These will only be present when the required single child
is a `c:multiLvlStrRef` element. Returns an empty list when no
`c:lvl` descendent elements are present.
z.//c:lvl)Úxpath©Úselfs    ÚS/home/mande/repo/quber/.venv/lib/python3.13/site-packages/pptx/oxml/chart/series.pyÚlvlsÚCT_AxDataSource.lvls   s   € ð �z‰z˜*Ó%Ð%ó    N)
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   ÚmultiLvlStrRefÚpropertyr   Ú__static_attributes__r   r   r   r   r      s(   † ññ
 Ð1¸bÑA€Nàñ&ó ó&r   r   c                  óf   • \ rS rSrSrSr\" S5      r\" S\SS S9r	\" S	\S
S S9r
C\S 5       rSrg)ÚCT_DPté$   zR
``<c:dPt>`` custom element class, containing visual properties for a data
point.
)úc:idxúc:invertIfNegativeúc:markerú
c:bubble3Dúc:explosionúc:spPrúc:pictureOptionsúc:extLstr%   r'   é   Nr   r*   é   c                óP   • [        S5      nUR                  [        S5      5        U$ )zP
Return a newly created "loose" `c:dPt` element containing its default
subtree.
úc:dPtr%   )r   Úappend)ÚclsÚdPts     r   Únew_dPtÚCT_DPt.new_dPt9   s$   € ô ˜'Ó"ˆØ�
‰
”;˜wÓ'Ô(Øˆ
r   r   )r   r   r   r   r   Ú_tag_seqr   Úidxr   ÚmarkerÚspPrÚclassmethodr4   r!   r   r   r   r#   r#   $   sS   † ñð
	€Hñ ˜Ó
 €CÙ�z¨h°q°r¨lÑ;€FÙ�X¨(°1°2¨,Ñ7€DØàñó ór   r#   c                  ó&   • \ rS rSrSr\" SSS9rSrg)ÚCT_LvléD   zb
``<c:lvl>`` custom element class used in multi-level categories to
specify a level of hierarchy.
zc:ptr   r   N)r   r   r   r   r   r
   Úptr!   r   r   r   r<   r<   D   s   † ññ
 
�F rÑ	*ƒBr   r<   c                  ó>   • \ rS rSrSr\" S5      r\S 5       rS r	Sr
g)ÚCT_NumDataSourceéM   zU
``<c:yVal>`` custom element class used in XY and bubble charts, and
perhaps others.
zc:numRefc                óR   • U R                  S5      nU(       a  [        US   5      $ S$ )aN  
Return the value of `./c:numRef/c:numCache/c:ptCount/@val`,
specifying how many `c:pt` elements are in this numeric data cache.
Returns 0 if no `c:ptCount` element is present, as this is the least
disruptive way to degrade when no cached point data is available.
This situation is not expected, but is valid according to the schema.
z.//c:ptCount/@valr   ©r   Úint)r   Úresultss     r   ÚptCount_valÚCT_NumDataSource.ptCount_valU   s(   € ð —*‘*Ð0Ó1ˆÞ")Œs�7˜1‘:‹Ð0¨qÐ0r   c                óZ   • U R                  SU-  5      nU(       a  US   R                  $ S$ )zl
Return the Y value for data point *idx* in this cache, or None if no
value is present for that data point.
z.//c:pt[@idx=%d]r   N)r   Úvalue)r   r7   rE   s      r   Úpt_vÚCT_NumDataSource.pt_va   s/   € ð
 —*‘*Ð/°#Ñ5Ó6ˆÞ#*ˆw�q‰z×ÑÐ4°Ð4r   r   N)r   r   r   r   r   r   ÚnumRefr    rF   rJ   r!   r   r   r   r@   r@   M   s*   † ññ
 ˜:Ó&€Fàñ	1ó ð	1õ5r   r@   c                  óŒ  • \ rS rSrSrSr\" S5      r\" S5      r\	" S\SS S	9r
\	" S
\SS S	9r\	" S\SS S	9r\	" S\SS S	9r\" S\SS S	9r\	" S\SS S	9r\	" S\SS S	9r\	" S\SS S	9r\	" S\SS S	9r\	" S\SS S	9r\	" S\SS S	9r\	" S\SS S	9rC\S  5       r\S! 5       rS" rS# rS$ r\S% 5       r\S& 5       rS' rS( r S)r!g)*ÚCT_SeriesCompositeéj   a>  
``<c:ser>`` custom element class. Note there are several different series
element types in the schema, such as ``CT_LineSer`` and ``CT_BarSer``,
but they all share the same tag name. This class acts as a composite and
depends on the caller not to do anything invalid for a series belonging
to a particular plot type.
)r%   úc:orderúc:txr*   r&   r+   r'   r)   r0   úc:dLblszc:trendlinez	c:errBarsúc:catúc:valúc:xValúc:yValzc:shapeúc:smoothúc:bubbleSizer(   r,   r%   rP   rQ   r-   Nr   r*   é   r&   é   r'   é   r0   é	   rR   é
   rS   é   rT   é   rU   é   rV   é   rW   é   rX   é   c                óP   • U R                  S5      nU(       d  g[        US   5      $ )z‚
Return the number of bubble size values as reflected in the `val`
attribute of `./c:bubbleSize//c:ptCount`, or 0 if not present.
z./c:bubbleSize//c:ptCount/@valr   rC   ©r   Úvalss     r   ÚbubbleSize_ptCount_valÚ)CT_SeriesComposite.bubbleSize_ptCount_valš   s'   € ð �z‰zÐ:Ó;ˆÞØÜ�4˜‘7‹|Ðr   c                óP   • U R                  S5      nU(       d  g[        US   5      $ )zs
Return the number of categories as reflected in the `val` attribute
of `./c:cat//c:ptCount`, or 0 if not present.
z./c:cat//c:ptCount/@valr   rC   re   s     r   Úcat_ptCount_valÚ"CT_SeriesComposite.cat_ptCount_val¥   s'   € ð �z‰zÐ3Ó4ˆÞØÜ�4˜‘7‹|Ðr   c                óD   • U R                   nUc  gUR                  U5      $ )z�
Return the `c:dLbl` element representing the label for the data point
at offset *idx* in this series, or |None| if not present.
N)ÚdLblsÚget_dLbl_for_point©r   r7   rm   s      r   Úget_dLblÚCT_SeriesComposite.get_dLbl°   s&   € ð
 —
‘
ˆØ‰=ØØ×'Ñ'¨Ó,Ð,r   c                óD   • U R                  5       nUR                  U5      $ )zƒ
Return the `c:dLbl` element representing the label of the point at
offset *idx* in this series, newly created if not yet present.
)Úget_or_add_dLblsÚget_or_add_dLbl_for_pointro   s      r   Úget_or_add_dLblÚ"CT_SeriesComposite.get_or_add_dLblº   s#   € ð
 ×%Ñ%Ó'ˆØ×.Ñ.¨sÓ3Ð3r   c                ó†   • U R                  SU-  5      nU(       a  US   $ U R                  5       nXR                  l        U$ )z_
Return the `c:dPt` child representing the visual properties of the
data point at index *idx*.
zc:dPt[c:idx[@val="%d"]]r   )r   Ú_add_dPtr7   Úval)r   r7   Úmatchesr3   s       r   Úget_or_add_dPt_for_pointÚ+CT_SeriesComposite.get_or_add_dPt_for_pointÂ   s>   € ð
 —*‘*Ð6¸Ñ<Ó=ˆÞØ˜1‘:ÐØ�m‰m‹oˆØ�‰ŒØˆ
r   c                óP   • U R                  S5      nU(       d  g[        US   5      $ )zr
Return the number of X values as reflected in the `val` attribute of
`./c:xVal//c:ptCount`, or 0 if not present.
z./c:xVal//c:ptCount/@valr   rC   re   s     r   ÚxVal_ptCount_valÚ#CT_SeriesComposite.xVal_ptCount_valÎ   ó'   € ð �z‰zÐ4Ó5ˆÞØÜ�4˜‘7‹|Ðr   c                óP   • U R                  S5      nU(       d  g[        US   5      $ )zr
Return the number of Y values as reflected in the `val` attribute of
`./c:yVal//c:ptCount`, or 0 if not present.
z./c:yVal//c:ptCount/@valr   rC   re   s     r   ÚyVal_ptCount_valÚ#CT_SeriesComposite.yVal_ptCount_valÙ   r€   r   c                ó,   • [         R                  " 5       $ )z9Override metaclass method that creates `c:dLbls` element.)r   Ú	new_dLblsr   s    r   Ú
_new_dLblsÚCT_SeriesComposite._new_dLblsä   s   € ä×!Ò!Ó#Ð#r   c                ó*   • [         R                  5       $ )zO
Overrides the metaclass generated method to get `c:dPt` with minimal
subtree.
)r#   r4   r   s    r   Ú_new_dPtÚCT_SeriesComposite._new_dPtè   s   € ô
 �~‰~ÓÐr   r   )"r   r   r   r   r   r6   r   r7   Úorderr   Útxr9   ÚinvertIfNegativer8   r
   r3   rm   Úcatry   ÚxValÚyValÚsmoothÚ
bubbleSizer    rg   rj   rp   ru   r{   r~   r‚   r†   r‰   r!   r   r   r   rN   rN   j   sh  † ñð€Hñ. ˜Ó
 €CÙ˜)Ó$€EÙ	�6 h¨q¨r lÑ	3€BÙ�X¨(°1°2¨,Ñ7€DÙ Ð!5À(È1È2À,ÑOÐÙ�z¨h°q°r¨lÑ;€FÙ
�W¨°!°"¨Ñ
6€CÙ�i¨H°R°S¨MÑ:€EÙ
�G¨°°¨Ñ
6€CÙ
�G¨°°¨Ñ
6€CÙ�X¨(°2°3¨-Ñ8€DÙ�X¨(°2°3¨-Ñ8€DÙ�z¨h°r°s¨mÑ<€FÙ˜>°h¸r¸s°mÑD€JØàñó ðð ñó ðò-ò4ò
ð ñó ðð ñó ðò$õ r   rN   c                  óJ   • \ rS rSrSr\" S5      r\" S\5      r	\
S 5       rSrg)ÚCT_StrVal_NumVal_Compositeéð   z~
``<c:pt>`` element, can be either CT_StrVal or CT_NumVal complex type.
Using this class for both, differentiating as needed.
zc:vr7   c                ó@   • [        U R                  R                  5      $ )z>
The float value of the text in the required ``<c:v>`` child.
)ÚfloatÚvÚtextr   s    r   rI   Ú CT_StrVal_NumVal_Composite.valueù   s   € ô
 �T—V‘V—[‘[Ó!Ð!r   r   N)r   r   r   r   r   r   r˜   r	   r   r7   r    rI   r!   r   r   r   r”   r”   ð   s1   † ññ
 	�eÓ€AÙ
˜E >Ó
2€Càñ"ó ó"r   r”   N)r   Ú
__future__r   Úpptx.oxml.chart.datalabelr   Úpptx.oxml.simpletypesr   Úpptx.oxml.xmlchemyr   r   r   r	   r
   r   r   r#   r<   r@   rN   r”   r   r   r   Ú<module>rŸ      sg   ðÙ "å "å .Ý 0÷÷ ô&�oô &ô&ˆ_ô ô@+ˆ_ô +ô5�ô 5ô:C ˜ô C ôL" õ "r   