Skip to content

Commit 8f699a3

Browse files
committed
chore: Update plotly.js to v3.6.0
1 parent f0755e5 commit 8f699a3

9 files changed

Lines changed: 296 additions & 170 deletions

File tree

codegen/resources/plot-schema.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3063,6 +3063,17 @@
30633063
"y unified"
30643064
]
30653065
},
3066+
"hoversort": {
3067+
"description": "Determines the order of items shown in unified hover labels. If *trace*, items are sorted by trace index. If *value descending*, items are sorted by value from largest to smallest. If *value ascending*, items are sorted by value from smallest to largest. Only applies when `hovermode` is *x unified* or *y unified*.",
3068+
"dflt": "trace",
3069+
"editType": "none",
3070+
"valType": "enumerated",
3071+
"values": [
3072+
"trace",
3073+
"value descending",
3074+
"value ascending"
3075+
]
3076+
},
30663077
"hoversubplots": {
30673078
"description": "Determines expansion of hover effects to other subplots If *single* just the axis pair of the primary point is included without overlaying subplots. If *overlaying* all subplots using the main axis and occupying the same space are included. If *axis*, also include stacked subplots using the same axis when `hovermode` is set to *x*, *x unified*, *y* or *y unified*.",
30683079
"dflt": "overlaying",
@@ -56775,11 +56786,17 @@
5677556786
}
5677656787
},
5677756788
"legendrank": {
56778-
"description": "Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with *reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.",
56789+
"arrayOk": true,
56790+
"description": "Sets the legend rank for this pie. If passed as an array, this will set the legend rank of the individual pie slices. Items and groups with smaller ranks are presented on top/left side while with *reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.",
5677956791
"dflt": 1000,
5678056792
"editType": "style",
5678156793
"valType": "number"
5678256794
},
56795+
"legendranksrc": {
56796+
"description": "Sets the source reference on Chart Studio Cloud for `legendrank`.",
56797+
"editType": "none",
56798+
"valType": "string"
56799+
},
5678356800
"legendsrc": {
5678456801
"description": "Sets the source reference on Chart Studio Cloud for `legend`.",
5678556802
"editType": "none",

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.5.0",
22+
"plotly.js": "3.6.0",
2323
"@lumino/widgets": "~2.4.0"
2424
},
2525
"devDependencies": {

plotly/graph_objs/_figure.py

Lines changed: 16 additions & 10 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+
legendranksrc=None,
1267412675
legendsrc=None,
1267512676
legendwidth=None,
1267612677
marker=None,
@@ -12850,16 +12851,20 @@ def add_pie(
1285012851
:class:`plotly.graph_objects.pie.Legendgrouptitle`
1285112852
instance or dict with compatible properties
1285212853
legendrank
12853-
Sets the legend rank for this trace. Items and groups
12854-
with smaller ranks are presented on top/left side while
12855-
with "reversed" `legend.traceorder` they are on
12856-
bottom/right side. The default legendrank is 1000, so
12857-
that you can use ranks less than 1000 to place certain
12858-
items before all unranked items, and ranks greater than
12859-
1000 to go after all unranked items. When having
12860-
unranked or equal rank items shapes would be displayed
12861-
after traces i.e. according to their order in data and
12862-
layout.
12854+
Sets the legend rank for this pie. If passed as an
12855+
array, this will set the legend rank of the individual
12856+
pie slices. Items and groups with smaller ranks are
12857+
presented on top/left side while with "reversed"
12858+
`legend.traceorder` they are on bottom/right side. The
12859+
default legendrank is 1000, so that you can use ranks
12860+
less than 1000 to place certain items before all
12861+
unranked items, and ranks greater than 1000 to go after
12862+
all unranked items. When having unranked or equal rank
12863+
items shapes would be displayed after traces i.e.
12864+
according to their order in data and layout.
12865+
legendranksrc
12866+
Sets the source reference on Chart Studio Cloud for
12867+
`legendrank`.
1286312868
legendsrc
1286412869
Sets the source reference on Chart Studio Cloud for
1286512870
`legend`.
@@ -13052,6 +13057,7 @@ def add_pie(
1305213057
legendgroup=legendgroup,
1305313058
legendgrouptitle=legendgrouptitle,
1305413059
legendrank=legendrank,
13060+
legendranksrc=legendranksrc,
1305513061
legendsrc=legendsrc,
1305613062
legendwidth=legendwidth,
1305713063
marker=marker,

plotly/graph_objs/_figurewidget.py

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12673,6 +12673,7 @@ def add_pie(
1267312673
legendgroup=None,
1267412674
legendgrouptitle=None,
1267512675
legendrank=None,
12676+
legendranksrc=None,
1267612677
legendsrc=None,
1267712678
legendwidth=None,
1267812679
marker=None,
@@ -12852,16 +12853,20 @@ def add_pie(
1285212853
:class:`plotly.graph_objects.pie.Legendgrouptitle`
1285312854
instance or dict with compatible properties
1285412855
legendrank
12855-
Sets the legend rank for this trace. Items and groups
12856-
with smaller ranks are presented on top/left side while
12857-
with "reversed" `legend.traceorder` they are on
12858-
bottom/right side. The default legendrank is 1000, so
12859-
that you can use ranks less than 1000 to place certain
12860-
items before all unranked items, and ranks greater than
12861-
1000 to go after all unranked items. When having
12862-
unranked or equal rank items shapes would be displayed
12863-
after traces i.e. according to their order in data and
12864-
layout.
12856+
Sets the legend rank for this pie. If passed as an
12857+
array, this will set the legend rank of the individual
12858+
pie slices. Items and groups with smaller ranks are
12859+
presented on top/left side while with "reversed"
12860+
`legend.traceorder` they are on bottom/right side. The
12861+
default legendrank is 1000, so that you can use ranks
12862+
less than 1000 to place certain items before all
12863+
unranked items, and ranks greater than 1000 to go after
12864+
all unranked items. When having unranked or equal rank
12865+
items shapes would be displayed after traces i.e.
12866+
according to their order in data and layout.
12867+
legendranksrc
12868+
Sets the source reference on Chart Studio Cloud for
12869+
`legendrank`.
1286512870
legendsrc
1286612871
Sets the source reference on Chart Studio Cloud for
1286712872
`legend`.
@@ -13054,6 +13059,7 @@ def add_pie(
1305413059
legendgroup=legendgroup,
1305513060
legendgrouptitle=legendgrouptitle,
1305613061
legendrank=legendrank,
13062+
legendranksrc=legendranksrc,
1305713063
legendsrc=legendsrc,
1305813064
legendwidth=legendwidth,
1305913065
marker=marker,

plotly/graph_objs/_layout.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def _subplot_re_match(self, prop):
9999
"hoverdistance",
100100
"hoverlabel",
101101
"hovermode",
102+
"hoversort",
102103
"hoversubplots",
103104
"iciclecolorway",
104105
"imagedefaults",
@@ -1109,6 +1110,30 @@ def hovermode(self):
11091110
def hovermode(self, val):
11101111
self["hovermode"] = val
11111112

1113+
@property
1114+
def hoversort(self):
1115+
"""
1116+
Determines the order of items shown in unified hover labels. If
1117+
"trace", items are sorted by trace index. If *value
1118+
descending*, items are sorted by value from largest to
1119+
smallest. If *value ascending*, items are sorted by value from
1120+
smallest to largest. Only applies when `hovermode` is *x
1121+
unified* or *y unified*.
1122+
1123+
The 'hoversort' property is an enumeration that may be specified as:
1124+
- One of the following enumeration values:
1125+
['trace', 'value descending', 'value ascending']
1126+
1127+
Returns
1128+
-------
1129+
Any
1130+
"""
1131+
return self["hoversort"]
1132+
1133+
@hoversort.setter
1134+
def hoversort(self, val):
1135+
self["hoversort"] = val
1136+
11121137
@property
11131138
def hoversubplots(self):
11141139
"""
@@ -2491,6 +2516,13 @@ def _prop_descriptions(self):
24912516
mode, spikelines are enabled by default perpendicular
24922517
to the specified axis. If false, hover interactions are
24932518
disabled.
2519+
hoversort
2520+
Determines the order of items shown in unified hover
2521+
labels. If "trace", items are sorted by trace index. If
2522+
*value descending*, items are sorted by value from
2523+
largest to smallest. If *value ascending*, items are
2524+
sorted by value from smallest to largest. Only applies
2525+
when `hovermode` is *x unified* or *y unified*.
24942526
hoversubplots
24952527
Determines expansion of hover effects to other subplots
24962528
If "single" just the axis pair of the primary point is
@@ -2793,6 +2825,7 @@ def __init__(
27932825
hoverdistance=None,
27942826
hoverlabel=None,
27952827
hovermode=None,
2828+
hoversort=None,
27962829
hoversubplots=None,
27972830
iciclecolorway=None,
27982831
images=None,
@@ -3106,6 +3139,13 @@ def __init__(
31063139
mode, spikelines are enabled by default perpendicular
31073140
to the specified axis. If false, hover interactions are
31083141
disabled.
3142+
hoversort
3143+
Determines the order of items shown in unified hover
3144+
labels. If "trace", items are sorted by trace index. If
3145+
*value descending*, items are sorted by value from
3146+
largest to smallest. If *value ascending*, items are
3147+
sorted by value from smallest to largest. Only applies
3148+
when `hovermode` is *x unified* or *y unified*.
31093149
hoversubplots
31103150
Determines expansion of hover effects to other subplots
31113151
If "single" just the axis pair of the primary point is
@@ -3414,6 +3454,7 @@ def __init__(
34143454
"hoverdistance",
34153455
"hoverlabel",
34163456
"hovermode",
3457+
"hoversort",
34173458
"hoversubplots",
34183459
"iciclecolorway",
34193460
"imagedefaults",
@@ -3528,6 +3569,7 @@ def __init__(
35283569
self._set_property("hoverdistance", arg, hoverdistance)
35293570
self._set_property("hoverlabel", arg, hoverlabel)
35303571
self._set_property("hovermode", arg, hovermode)
3572+
self._set_property("hoversort", arg, hoversort)
35313573
self._set_property("hoversubplots", arg, hoversubplots)
35323574
self._set_property("iciclecolorway", arg, iciclecolorway)
35333575
self._set_property("images", arg, images)

plotly/graph_objs/_pie.py

Lines changed: 62 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class Pie(_BaseTraceType):
3535
"legendgroup",
3636
"legendgrouptitle",
3737
"legendrank",
38+
"legendranksrc",
3839
"legendsrc",
3940
"legendwidth",
4041
"marker",
@@ -608,28 +609,50 @@ def legendgrouptitle(self, val):
608609
@property
609610
def legendrank(self):
610611
"""
611-
Sets the legend rank for this trace. Items and groups with
612-
smaller ranks are presented on top/left side while with
613-
"reversed" `legend.traceorder` they are on bottom/right side.
614-
The default legendrank is 1000, so that you can use ranks less
615-
than 1000 to place certain items before all unranked items, and
616-
ranks greater than 1000 to go after all unranked items. When
617-
having unranked or equal rank items shapes would be displayed
618-
after traces i.e. according to their order in data and layout.
612+
Sets the legend rank for this pie. If passed as an array, this
613+
will set the legend rank of the individual pie slices. Items
614+
and groups with smaller ranks are presented on top/left side
615+
while with "reversed" `legend.traceorder` they are on
616+
bottom/right side. The default legendrank is 1000, so that you
617+
can use ranks less than 1000 to place certain items before all
618+
unranked items, and ranks greater than 1000 to go after all
619+
unranked items. When having unranked or equal rank items shapes
620+
would be displayed after traces i.e. according to their order
621+
in data and layout.
619622
620623
The 'legendrank' property is a number and may be specified as:
621624
- An int or float
625+
- A tuple, list, or one-dimensional numpy array of the above
622626
623627
Returns
624628
-------
625-
int|float
629+
int|float|numpy.ndarray
626630
"""
627631
return self["legendrank"]
628632

629633
@legendrank.setter
630634
def legendrank(self, val):
631635
self["legendrank"] = val
632636

637+
@property
638+
def legendranksrc(self):
639+
"""
640+
Sets the source reference on Chart Studio Cloud for
641+
`legendrank`.
642+
643+
The 'legendranksrc' property must be specified as a string or
644+
as a plotly.grid_objs.Column object
645+
646+
Returns
647+
-------
648+
str
649+
"""
650+
return self["legendranksrc"]
651+
652+
@legendranksrc.setter
653+
def legendranksrc(self, val):
654+
self["legendranksrc"] = val
655+
633656
@property
634657
def legendsrc(self):
635658
"""
@@ -1416,16 +1439,20 @@ def _prop_descriptions(self):
14161439
:class:`plotly.graph_objects.pie.Legendgrouptitle`
14171440
instance or dict with compatible properties
14181441
legendrank
1419-
Sets the legend rank for this trace. Items and groups
1420-
with smaller ranks are presented on top/left side while
1421-
with "reversed" `legend.traceorder` they are on
1422-
bottom/right side. The default legendrank is 1000, so
1423-
that you can use ranks less than 1000 to place certain
1424-
items before all unranked items, and ranks greater than
1425-
1000 to go after all unranked items. When having
1426-
unranked or equal rank items shapes would be displayed
1427-
after traces i.e. according to their order in data and
1428-
layout.
1442+
Sets the legend rank for this pie. If passed as an
1443+
array, this will set the legend rank of the individual
1444+
pie slices. Items and groups with smaller ranks are
1445+
presented on top/left side while with "reversed"
1446+
`legend.traceorder` they are on bottom/right side. The
1447+
default legendrank is 1000, so that you can use ranks
1448+
less than 1000 to place certain items before all
1449+
unranked items, and ranks greater than 1000 to go after
1450+
all unranked items. When having unranked or equal rank
1451+
items shapes would be displayed after traces i.e.
1452+
according to their order in data and layout.
1453+
legendranksrc
1454+
Sets the source reference on Chart Studio Cloud for
1455+
`legendrank`.
14291456
legendsrc
14301457
Sets the source reference on Chart Studio Cloud for
14311458
`legend`.
@@ -1605,6 +1632,7 @@ def __init__(
16051632
legendgroup=None,
16061633
legendgrouptitle=None,
16071634
legendrank=None,
1635+
legendranksrc=None,
16081636
legendsrc=None,
16091637
legendwidth=None,
16101638
marker=None,
@@ -1785,16 +1813,20 @@ def __init__(
17851813
:class:`plotly.graph_objects.pie.Legendgrouptitle`
17861814
instance or dict with compatible properties
17871815
legendrank
1788-
Sets the legend rank for this trace. Items and groups
1789-
with smaller ranks are presented on top/left side while
1790-
with "reversed" `legend.traceorder` they are on
1791-
bottom/right side. The default legendrank is 1000, so
1792-
that you can use ranks less than 1000 to place certain
1793-
items before all unranked items, and ranks greater than
1794-
1000 to go after all unranked items. When having
1795-
unranked or equal rank items shapes would be displayed
1796-
after traces i.e. according to their order in data and
1797-
layout.
1816+
Sets the legend rank for this pie. If passed as an
1817+
array, this will set the legend rank of the individual
1818+
pie slices. Items and groups with smaller ranks are
1819+
presented on top/left side while with "reversed"
1820+
`legend.traceorder` they are on bottom/right side. The
1821+
default legendrank is 1000, so that you can use ranks
1822+
less than 1000 to place certain items before all
1823+
unranked items, and ranks greater than 1000 to go after
1824+
all unranked items. When having unranked or equal rank
1825+
items shapes would be displayed after traces i.e.
1826+
according to their order in data and layout.
1827+
legendranksrc
1828+
Sets the source reference on Chart Studio Cloud for
1829+
`legendrank`.
17981830
legendsrc
17991831
Sets the source reference on Chart Studio Cloud for
18001832
`legend`.
@@ -1994,6 +2026,7 @@ def __init__(
19942026
self._set_property("legendgroup", arg, legendgroup)
19952027
self._set_property("legendgrouptitle", arg, legendgrouptitle)
19962028
self._set_property("legendrank", arg, legendrank)
2029+
self._set_property("legendranksrc", arg, legendranksrc)
19972030
self._set_property("legendsrc", arg, legendsrc)
19982031
self._set_property("legendwidth", arg, legendwidth)
19992032
self._set_property("marker", arg, marker)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# DO NOT EDIT
22
# This file is generated by the updatebundle commands.py command
3-
__plotlyjs_version__ = "3.5.0"
3+
__plotlyjs_version__ = "3.6.0"

plotly/package_data/plotly.min.js

Lines changed: 118 additions & 118 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)