Skip to content

Commit 6f94d9c

Browse files
committed
Update plotly.js to v3.3.1 and associated files
1 parent f265d9b commit 6f94d9c

File tree

8 files changed

+98094
-97967
lines changed

8 files changed

+98094
-97967
lines changed

codegen/resources/plot-schema.json

Lines changed: 97869 additions & 97855 deletions
Large diffs are not rendered by default.

js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"dependencies": {
2121
"lodash-es": "^4.17.21",
22-
"plotly.js": "3.3.0",
22+
"plotly.js": "3.3.1",
2323
"@lumino/widgets": "~2.4.0"
2424
},
2525
"devDependencies": {

plotly/graph_objs/_figure.py

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12669,6 +12669,7 @@ def add_pie(
1266912669
legendgroup=None,
1267012670
legendgrouptitle=None,
1267112671
legendrank=None,
12672+
legendsrc=None,
1267212673
legendwidth=None,
1267312674
marker=None,
1267412675
meta=None,
@@ -12681,6 +12682,7 @@ def add_pie(
1268112682
rotation=None,
1268212683
scalegroup=None,
1268312684
showlegend=None,
12685+
showlegendsrc=None,
1268412686
sort=None,
1268512687
stream=None,
1268612688
text=None,
@@ -12831,11 +12833,13 @@ def add_pie(
1283112833
Sets the source reference on Chart Studio Cloud for
1283212834
`labels`.
1283312835
legend
12834-
Sets the reference to a legend to show this trace in.
12835-
References to these legends are "legend", "legend2",
12836-
"legend3", etc. Settings for these legends are set in
12837-
the layout, under `layout.legend`, `layout.legend2`,
12838-
etc.
12836+
Sets the reference to a legend to show the pie slices
12837+
in. Can be an array if `values` is set. In that case,
12838+
each entry specifies the legend reference for one
12839+
slice. References to these legends are "legend",
12840+
"legend2", "legend3", etc. Settings for these legends
12841+
are set in the layout, under `layout.legend`,
12842+
`layout.legend2`, etc.
1283912843
legendgroup
1284012844
Sets the legend group for this trace. Traces and shapes
1284112845
part of the same legend group hide/show at the same
@@ -12854,6 +12858,9 @@ def add_pie(
1285412858
unranked or equal rank items shapes would be displayed
1285512859
after traces i.e. according to their order in data and
1285612860
layout.
12861+
legendsrc
12862+
Sets the source reference on Chart Studio Cloud for
12863+
`legend`.
1285712864
legendwidth
1285812865
Sets the width (in px or fraction) of the legend for
1285912866
this trace.
@@ -12901,8 +12908,13 @@ def add_pie(
1290112908
non-empty group id here shared by every trace in the
1290212909
same group.
1290312910
showlegend
12904-
Determines whether or not an item corresponding to this
12905-
trace is shown in the legend.
12911+
Determines whether or not items corresponding to the
12912+
pie slices are shown in the legend. Can be an array if
12913+
`values` is set. In that case, each entry specifies
12914+
appearance in the legend for one slice.
12915+
showlegendsrc
12916+
Sets the source reference on Chart Studio Cloud for
12917+
`showlegend`.
1290612918
sort
1290712919
Determines whether or not the sectors are reordered
1290812920
from largest to smallest.
@@ -13038,6 +13050,7 @@ def add_pie(
1303813050
legendgroup=legendgroup,
1303913051
legendgrouptitle=legendgrouptitle,
1304013052
legendrank=legendrank,
13053+
legendsrc=legendsrc,
1304113054
legendwidth=legendwidth,
1304213055
marker=marker,
1304313056
meta=meta,
@@ -13050,6 +13063,7 @@ def add_pie(
1305013063
rotation=rotation,
1305113064
scalegroup=scalegroup,
1305213065
showlegend=showlegend,
13066+
showlegendsrc=showlegendsrc,
1305313067
sort=sort,
1305413068
stream=stream,
1305513069
text=text,

plotly/graph_objs/_figurewidget.py

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12671,6 +12671,7 @@ def add_pie(
1267112671
legendgroup=None,
1267212672
legendgrouptitle=None,
1267312673
legendrank=None,
12674+
legendsrc=None,
1267412675
legendwidth=None,
1267512676
marker=None,
1267612677
meta=None,
@@ -12683,6 +12684,7 @@ def add_pie(
1268312684
rotation=None,
1268412685
scalegroup=None,
1268512686
showlegend=None,
12687+
showlegendsrc=None,
1268612688
sort=None,
1268712689
stream=None,
1268812690
text=None,
@@ -12833,11 +12835,13 @@ def add_pie(
1283312835
Sets the source reference on Chart Studio Cloud for
1283412836
`labels`.
1283512837
legend
12836-
Sets the reference to a legend to show this trace in.
12837-
References to these legends are "legend", "legend2",
12838-
"legend3", etc. Settings for these legends are set in
12839-
the layout, under `layout.legend`, `layout.legend2`,
12840-
etc.
12838+
Sets the reference to a legend to show the pie slices
12839+
in. Can be an array if `values` is set. In that case,
12840+
each entry specifies the legend reference for one
12841+
slice. References to these legends are "legend",
12842+
"legend2", "legend3", etc. Settings for these legends
12843+
are set in the layout, under `layout.legend`,
12844+
`layout.legend2`, etc.
1284112845
legendgroup
1284212846
Sets the legend group for this trace. Traces and shapes
1284312847
part of the same legend group hide/show at the same
@@ -12856,6 +12860,9 @@ def add_pie(
1285612860
unranked or equal rank items shapes would be displayed
1285712861
after traces i.e. according to their order in data and
1285812862
layout.
12863+
legendsrc
12864+
Sets the source reference on Chart Studio Cloud for
12865+
`legend`.
1285912866
legendwidth
1286012867
Sets the width (in px or fraction) of the legend for
1286112868
this trace.
@@ -12903,8 +12910,13 @@ def add_pie(
1290312910
non-empty group id here shared by every trace in the
1290412911
same group.
1290512912
showlegend
12906-
Determines whether or not an item corresponding to this
12907-
trace is shown in the legend.
12913+
Determines whether or not items corresponding to the
12914+
pie slices are shown in the legend. Can be an array if
12915+
`values` is set. In that case, each entry specifies
12916+
appearance in the legend for one slice.
12917+
showlegendsrc
12918+
Sets the source reference on Chart Studio Cloud for
12919+
`showlegend`.
1290812920
sort
1290912921
Determines whether or not the sectors are reordered
1291012922
from largest to smallest.
@@ -13040,6 +13052,7 @@ def add_pie(
1304013052
legendgroup=legendgroup,
1304113053
legendgrouptitle=legendgrouptitle,
1304213054
legendrank=legendrank,
13055+
legendsrc=legendsrc,
1304313056
legendwidth=legendwidth,
1304413057
marker=marker,
1304513058
meta=meta,
@@ -13052,6 +13065,7 @@ def add_pie(
1305213065
rotation=rotation,
1305313066
scalegroup=scalegroup,
1305413067
showlegend=showlegend,
13068+
showlegendsrc=showlegendsrc,
1305513069
sort=sort,
1305613070
stream=stream,
1305713071
text=text,

plotly/graph_objs/_pie.py

Lines changed: 89 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)