@@ -35,6 +35,7 @@ class Pie(_BaseTraceType):
3535 "legendgroup" ,
3636 "legendgrouptitle" ,
3737 "legendrank" ,
38+ "legendsrc" ,
3839 "legendwidth" ,
3940 "marker" ,
4041 "meta" ,
@@ -47,6 +48,7 @@ class Pie(_BaseTraceType):
4748 "rotation" ,
4849 "scalegroup" ,
4950 "showlegend" ,
51+ "showlegendsrc" ,
5052 "sort" ,
5153 "stream" ,
5254 "text" ,
@@ -540,10 +542,12 @@ def labelssrc(self, val):
540542 @property
541543 def legend (self ):
542544 """
543- Sets the reference to a legend to show this trace in.
544- References to these legends are "legend", "legend2", "legend3",
545- etc. Settings for these legends are set in the layout, under
546- `layout.legend`, `layout.legend2`, etc.
545+ Sets the reference to a legend to show the pie slices in. Can
546+ be an array if `values` is set. In that case, each entry
547+ specifies the legend reference for one slice. References to
548+ these legends are "legend", "legend2", "legend3", etc. Settings
549+ for these legends are set in the layout, under `layout.legend`,
550+ `layout.legend2`, etc.
547551
548552 The 'legend' property is an identifier of a particular
549553 subplot, of type 'legend', that may be specified as the string 'legend'
@@ -552,7 +556,7 @@ def legend(self):
552556
553557 Returns
554558 -------
555- str
559+ str|numpy.ndarray
556560 """
557561 return self ["legend" ]
558562
@@ -625,6 +629,24 @@ def legendrank(self):
625629 def legendrank (self , val ):
626630 self ["legendrank" ] = val
627631
632+ @property
633+ def legendsrc (self ):
634+ """
635+ Sets the source reference on Chart Studio Cloud for `legend`.
636+
637+ The 'legendsrc' property must be specified as a string or
638+ as a plotly.grid_objs.Column object
639+
640+ Returns
641+ -------
642+ str
643+ """
644+ return self ["legendsrc" ]
645+
646+ @legendsrc .setter
647+ def legendsrc (self , val ):
648+ self ["legendsrc" ] = val
649+
628650 @property
629651 def legendwidth (self ):
630652 """
@@ -851,22 +873,43 @@ def scalegroup(self, val):
851873 @property
852874 def showlegend (self ):
853875 """
854- Determines whether or not an item corresponding to this trace
855- is shown in the legend.
876+ Determines whether or not items corresponding to the pie slices
877+ are shown in the legend. Can be an array if `values` is set. In
878+ that case, each entry specifies appearance in the legend for
879+ one slice.
856880
857881 The 'showlegend' property must be specified as a bool
858882 (either True, or False)
859883
860884 Returns
861885 -------
862- bool
886+ bool|numpy.ndarray
863887 """
864888 return self ["showlegend" ]
865889
866890 @showlegend .setter
867891 def showlegend (self , val ):
868892 self ["showlegend" ] = val
869893
894+ @property
895+ def showlegendsrc (self ):
896+ """
897+ Sets the source reference on Chart Studio Cloud for
898+ `showlegend`.
899+
900+ The 'showlegendsrc' property must be specified as a string or
901+ as a plotly.grid_objs.Column object
902+
903+ Returns
904+ -------
905+ str
906+ """
907+ return self ["showlegendsrc" ]
908+
909+ @showlegendsrc .setter
910+ def showlegendsrc (self , val ):
911+ self ["showlegendsrc" ] = val
912+
870913 @property
871914 def sort (self ):
872915 """
@@ -1356,11 +1399,13 @@ def _prop_descriptions(self):
13561399 Sets the source reference on Chart Studio Cloud for
13571400 `labels`.
13581401 legend
1359- Sets the reference to a legend to show this trace in.
1360- References to these legends are "legend", "legend2",
1361- "legend3", etc. Settings for these legends are set in
1362- the layout, under `layout.legend`, `layout.legend2`,
1363- etc.
1402+ Sets the reference to a legend to show the pie slices
1403+ in. Can be an array if `values` is set. In that case,
1404+ each entry specifies the legend reference for one
1405+ slice. References to these legends are "legend",
1406+ "legend2", "legend3", etc. Settings for these legends
1407+ are set in the layout, under `layout.legend`,
1408+ `layout.legend2`, etc.
13641409 legendgroup
13651410 Sets the legend group for this trace. Traces and shapes
13661411 part of the same legend group hide/show at the same
@@ -1379,6 +1424,9 @@ def _prop_descriptions(self):
13791424 unranked or equal rank items shapes would be displayed
13801425 after traces i.e. according to their order in data and
13811426 layout.
1427+ legendsrc
1428+ Sets the source reference on Chart Studio Cloud for
1429+ `legend`.
13821430 legendwidth
13831431 Sets the width (in px or fraction) of the legend for
13841432 this trace.
@@ -1426,8 +1474,13 @@ def _prop_descriptions(self):
14261474 non-empty group id here shared by every trace in the
14271475 same group.
14281476 showlegend
1429- Determines whether or not an item corresponding to this
1430- trace is shown in the legend.
1477+ Determines whether or not items corresponding to the
1478+ pie slices are shown in the legend. Can be an array if
1479+ `values` is set. In that case, each entry specifies
1480+ appearance in the legend for one slice.
1481+ showlegendsrc
1482+ Sets the source reference on Chart Studio Cloud for
1483+ `showlegend`.
14311484 sort
14321485 Determines whether or not the sectors are reordered
14331486 from largest to smallest.
@@ -1550,6 +1603,7 @@ def __init__(
15501603 legendgroup = None ,
15511604 legendgrouptitle = None ,
15521605 legendrank = None ,
1606+ legendsrc = None ,
15531607 legendwidth = None ,
15541608 marker = None ,
15551609 meta = None ,
@@ -1562,6 +1616,7 @@ def __init__(
15621616 rotation = None ,
15631617 scalegroup = None ,
15641618 showlegend = None ,
1619+ showlegendsrc = None ,
15651620 sort = None ,
15661621 stream = None ,
15671622 text = None ,
@@ -1713,11 +1768,13 @@ def __init__(
17131768 Sets the source reference on Chart Studio Cloud for
17141769 `labels`.
17151770 legend
1716- Sets the reference to a legend to show this trace in.
1717- References to these legends are "legend", "legend2",
1718- "legend3", etc. Settings for these legends are set in
1719- the layout, under `layout.legend`, `layout.legend2`,
1720- etc.
1771+ Sets the reference to a legend to show the pie slices
1772+ in. Can be an array if `values` is set. In that case,
1773+ each entry specifies the legend reference for one
1774+ slice. References to these legends are "legend",
1775+ "legend2", "legend3", etc. Settings for these legends
1776+ are set in the layout, under `layout.legend`,
1777+ `layout.legend2`, etc.
17211778 legendgroup
17221779 Sets the legend group for this trace. Traces and shapes
17231780 part of the same legend group hide/show at the same
@@ -1736,6 +1793,9 @@ def __init__(
17361793 unranked or equal rank items shapes would be displayed
17371794 after traces i.e. according to their order in data and
17381795 layout.
1796+ legendsrc
1797+ Sets the source reference on Chart Studio Cloud for
1798+ `legend`.
17391799 legendwidth
17401800 Sets the width (in px or fraction) of the legend for
17411801 this trace.
@@ -1783,8 +1843,13 @@ def __init__(
17831843 non-empty group id here shared by every trace in the
17841844 same group.
17851845 showlegend
1786- Determines whether or not an item corresponding to this
1787- trace is shown in the legend.
1846+ Determines whether or not items corresponding to the
1847+ pie slices are shown in the legend. Can be an array if
1848+ `values` is set. In that case, each entry specifies
1849+ appearance in the legend for one slice.
1850+ showlegendsrc
1851+ Sets the source reference on Chart Studio Cloud for
1852+ `showlegend`.
17881853 sort
17891854 Determines whether or not the sectors are reordered
17901855 from largest to smallest.
@@ -1927,6 +1992,7 @@ def __init__(
19271992 self ._set_property ("legendgroup" , arg , legendgroup )
19281993 self ._set_property ("legendgrouptitle" , arg , legendgrouptitle )
19291994 self ._set_property ("legendrank" , arg , legendrank )
1995+ self ._set_property ("legendsrc" , arg , legendsrc )
19301996 self ._set_property ("legendwidth" , arg , legendwidth )
19311997 self ._set_property ("marker" , arg , marker )
19321998 self ._set_property ("meta" , arg , meta )
@@ -1939,6 +2005,7 @@ def __init__(
19392005 self ._set_property ("rotation" , arg , rotation )
19402006 self ._set_property ("scalegroup" , arg , scalegroup )
19412007 self ._set_property ("showlegend" , arg , showlegend )
2008+ self ._set_property ("showlegendsrc" , arg , showlegendsrc )
19422009 self ._set_property ("sort" , arg , sort )
19432010 self ._set_property ("stream" , arg , stream )
19442011 self ._set_property ("text" , arg , text )
0 commit comments