Skip to content

Commit bb7ee52

Browse files
committed
update plotly.js to v4.1.0
1 parent 58fde89 commit bb7ee52

15 files changed

Lines changed: 467 additions & 397 deletions

File tree

codegen/resources/plot-schema.json

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
},
143143
"doubleClickDelay": {
144144
"description": "Sets the delay for registering a double-click in ms. This is the time interval (in ms) between first mousedown and 2nd mouseup to constitute a double-click. This setting propagates to all on-subplot double clicks (except for geo and map) and on-legend double clicks.",
145-
"dflt": 300,
145+
"dflt": 500,
146146
"min": 0,
147147
"valType": "number"
148148
},
@@ -244,7 +244,7 @@
244244
"valType": "any"
245245
},
246246
"modeBarButtonsToAdd": {
247-
"description": "Add mode bar button using config objects See ./components/modebar/buttons.js for list of arguments. To enable predefined modebar buttons e.g. shape drawing, hover and spikelines, simply provide their string name(s). This could include: *v1hovermode*, *hoverclosest*, *hovercompare*, *togglehover*, *togglespikelines*, *drawline*, *drawopenpath*, *drawclosedpath*, *drawcircle*, *drawrect* and *eraseshape*. Please note that these predefined buttons will only be shown if they are compatible with all trace types used in a graph.",
247+
"description": "Add mode bar button using config objects See ./components/modebar/buttons.js for list of arguments. To enable predefined modebar buttons e.g. shape drawing, hover and spikelines, simply provide their string name(s). This could include: *v1hovermode*, *hoverclosest*, *hovercompare*, *togglehover*, *togglespikelines*, *drawline*, *drawopenpath*, *drawclosedpath*, *drawcircle*, *drawrect*, *eraseshape* and *downloadJson*. Please note that these predefined buttons will only be shown if they are compatible with all trace types used in a graph.",
248248
"dflt": [],
249249
"valType": "any"
250250
},
@@ -3312,6 +3312,15 @@
33123312
"togglegroup"
33133313
]
33143314
},
3315+
"groupdoubleclick": {
3316+
"description": "Determines the behavior on legend group item double-click. *toggleitem* toggles the visibility of the individual item clicked on the graph. *togglegroup* toggles the visibility of all items in the same legendgroup as the item clicked on the graph. Defaults to the value of `groupclick`.",
3317+
"editType": "legend",
3318+
"valType": "enumerated",
3319+
"values": [
3320+
"toggleitem",
3321+
"togglegroup"
3322+
]
3323+
},
33153324
"grouptitlefont": {
33163325
"color": {
33173326
"editType": "legend",
@@ -4167,7 +4176,7 @@
41674176
},
41684177
"add": {
41694178
"arrayOk": true,
4170-
"description": "Determines which predefined modebar buttons to add. Please note that these buttons will only be shown if they are compatible with all trace types used in a graph. Similar to `config.modeBarButtonsToAdd` option. This may include *v1hovermode*, *hoverclosest*, *hovercompare*, *togglehover*, *togglespikelines*, *drawline*, *drawopenpath*, *drawclosedpath*, *drawcircle*, *drawrect*, *eraseshape*.",
4179+
"description": "Determines which predefined modebar buttons to add. Please note that these buttons will only be shown if they are compatible with all trace types used in a graph. Similar to `config.modeBarButtonsToAdd` option. This may include *v1hovermode*, *hoverclosest*, *hovercompare*, *togglehover*, *togglespikelines*, *drawline*, *drawopenpath*, *drawclosedpath*, *drawcircle*, *drawrect*, *eraseshape*, *downloadJson*.",
41714180
"dflt": "",
41724181
"editType": "modebar",
41734182
"valType": "string"
@@ -13953,7 +13962,7 @@
1395313962
"valType": "boolean"
1395413963
},
1395513964
"showspikes": {
13956-
"description": "Determines whether or not spikes (aka droplines) are drawn for this axis. Note: This only takes affect when hovermode = closest",
13965+
"description": "Determines whether or not spikes (aka droplines) are drawn for this axis. Note that spikes will never be drawn when `hovermode` is *false*.",
1395713966
"dflt": false,
1395813967
"editType": "modebar",
1395913968
"valType": "boolean"
@@ -15202,7 +15211,7 @@
1520215211
"valType": "boolean"
1520315212
},
1520415213
"showspikes": {
15205-
"description": "Determines whether or not spikes (aka droplines) are drawn for this axis. Note: This only takes affect when hovermode = closest",
15214+
"description": "Determines whether or not spikes (aka droplines) are drawn for this axis. Note that spikes will never be drawn when `hovermode` is *false*.",
1520615215
"dflt": false,
1520715216
"editType": "modebar",
1520815217
"valType": "boolean"

js/lib/mimeExtension.js

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

js/package-lock.json

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

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

plotly/graph_objs/layout/_legend.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class Legend(_BaseLayoutHierarchyType):
1616
"entrywidthmode",
1717
"font",
1818
"groupclick",
19+
"groupdoubleclick",
1920
"grouptitlefont",
2021
"indentation",
2122
"itemclick",
@@ -198,6 +199,29 @@ def groupclick(self):
198199
def groupclick(self, val):
199200
self["groupclick"] = val
200201

202+
@property
203+
def groupdoubleclick(self):
204+
"""
205+
Determines the behavior on legend group item double-click.
206+
"toggleitem" toggles the visibility of the individual item
207+
clicked on the graph. "togglegroup" toggles the visibility of
208+
all items in the same legendgroup as the item clicked on the
209+
graph. Defaults to the value of `groupclick`.
210+
211+
The 'groupdoubleclick' property is an enumeration that may be specified as:
212+
- One of the following enumeration values:
213+
['toggleitem', 'togglegroup']
214+
215+
Returns
216+
-------
217+
Any
218+
"""
219+
return self["groupdoubleclick"]
220+
221+
@groupdoubleclick.setter
222+
def groupdoubleclick(self, val):
223+
self["groupdoubleclick"] = val
224+
201225
@property
202226
def grouptitlefont(self):
203227
"""
@@ -702,6 +726,13 @@ def _prop_descriptions(self):
702726
item clicked on the graph. "togglegroup" toggles the
703727
visibility of all items in the same legendgroup as the
704728
item clicked on the graph.
729+
groupdoubleclick
730+
Determines the behavior on legend group item double-
731+
click. "toggleitem" toggles the visibility of the
732+
individual item clicked on the graph. "togglegroup"
733+
toggles the visibility of all items in the same
734+
legendgroup as the item clicked on the graph. Defaults
735+
to the value of `groupclick`.
705736
grouptitlefont
706737
Sets the font for group titles in legend. Defaults to
707738
`legend.font` with its size increased about 10%.
@@ -835,6 +866,7 @@ def __init__(
835866
entrywidthmode=None,
836867
font=None,
837868
groupclick=None,
869+
groupdoubleclick=None,
838870
grouptitlefont=None,
839871
indentation=None,
840872
itemclick=None,
@@ -889,6 +921,13 @@ def __init__(
889921
item clicked on the graph. "togglegroup" toggles the
890922
visibility of all items in the same legendgroup as the
891923
item clicked on the graph.
924+
groupdoubleclick
925+
Determines the behavior on legend group item double-
926+
click. "toggleitem" toggles the visibility of the
927+
individual item clicked on the graph. "togglegroup"
928+
toggles the visibility of all items in the same
929+
legendgroup as the item clicked on the graph. Defaults
930+
to the value of `groupclick`.
892931
grouptitlefont
893932
Sets the font for group titles in legend. Defaults to
894933
`legend.font` with its size increased about 10%.
@@ -1042,6 +1081,7 @@ def __init__(
10421081
self._set_property("entrywidthmode", arg, entrywidthmode)
10431082
self._set_property("font", arg, font)
10441083
self._set_property("groupclick", arg, groupclick)
1084+
self._set_property("groupdoubleclick", arg, groupdoubleclick)
10451085
self._set_property("grouptitlefont", arg, grouptitlefont)
10461086
self._set_property("indentation", arg, indentation)
10471087
self._set_property("itemclick", arg, itemclick)

plotly/graph_objs/layout/_modebar.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ def add(self):
5656
`config.modeBarButtonsToAdd` option. This may include
5757
"v1hovermode", "hoverclosest", "hovercompare", "togglehover",
5858
"togglespikelines", "drawline", "drawopenpath",
59-
"drawclosedpath", "drawcircle", "drawrect", "eraseshape".
59+
"drawclosedpath", "drawcircle", "drawrect", "eraseshape",
60+
"downloadJson".
6061
6162
The 'add' property is a string and must be specified as:
6263
- A string
@@ -216,7 +217,7 @@ def _prop_descriptions(self):
216217
This may include "v1hovermode", "hoverclosest",
217218
"hovercompare", "togglehover", "togglespikelines",
218219
"drawline", "drawopenpath", "drawclosedpath",
219-
"drawcircle", "drawrect", "eraseshape".
220+
"drawcircle", "drawrect", "eraseshape", "downloadJson".
220221
bgcolor
221222
Sets the background color of the modebar.
222223
color
@@ -281,7 +282,7 @@ def __init__(
281282
This may include "v1hovermode", "hoverclosest",
282283
"hovercompare", "togglehover", "togglespikelines",
283284
"drawline", "drawopenpath", "drawclosedpath",
284-
"drawcircle", "drawrect", "eraseshape".
285+
"drawcircle", "drawrect", "eraseshape", "downloadJson".
285286
bgcolor
286287
Sets the background color of the modebar.
287288
color

plotly/graph_objs/layout/_xaxis.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,8 +1313,8 @@ def showline(self, val):
13131313
def showspikes(self):
13141314
"""
13151315
Determines whether or not spikes (aka droplines) are drawn for
1316-
this axis. Note: This only takes affect when hovermode =
1317-
closest
1316+
this axis. Note that spikes will never be drawn when
1317+
`hovermode` is False.
13181318
13191319
The 'showspikes' property is a boolean and must be specified as:
13201320
- A boolean value: True or False
@@ -2554,8 +2554,8 @@ def _prop_descriptions(self):
25542554
drawn.
25552555
showspikes
25562556
Determines whether or not spikes (aka droplines) are
2557-
drawn for this axis. Note: This only takes affect when
2558-
hovermode = closest
2557+
drawn for this axis. Note that spikes will never be
2558+
drawn when `hovermode` is False.
25592559
showticklabels
25602560
Determines whether or not the tick labels are drawn.
25612561
showtickprefix
@@ -3186,8 +3186,8 @@ def __init__(
31863186
drawn.
31873187
showspikes
31883188
Determines whether or not spikes (aka droplines) are
3189-
drawn for this axis. Note: This only takes affect when
3190-
hovermode = closest
3189+
drawn for this axis. Note that spikes will never be
3190+
drawn when `hovermode` is False.
31913191
showticklabels
31923192
Determines whether or not the tick labels are drawn.
31933193
showtickprefix

plotly/graph_objs/layout/_yaxis.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,8 +1321,8 @@ def showline(self, val):
13211321
def showspikes(self):
13221322
"""
13231323
Determines whether or not spikes (aka droplines) are drawn for
1324-
this axis. Note: This only takes affect when hovermode =
1325-
closest
1324+
this axis. Note that spikes will never be drawn when
1325+
`hovermode` is False.
13261326
13271327
The 'showspikes' property is a boolean and must be specified as:
13281328
- A boolean value: True or False
@@ -2572,8 +2572,8 @@ def _prop_descriptions(self):
25722572
drawn.
25732573
showspikes
25742574
Determines whether or not spikes (aka droplines) are
2575-
drawn for this axis. Note: This only takes affect when
2576-
hovermode = closest
2575+
drawn for this axis. Note that spikes will never be
2576+
drawn when `hovermode` is False.
25772577
showticklabels
25782578
Determines whether or not the tick labels are drawn.
25792579
showtickprefix
@@ -3214,8 +3214,8 @@ def __init__(
32143214
drawn.
32153215
showspikes
32163216
Determines whether or not spikes (aka droplines) are
3217-
drawn for this axis. Note: This only takes affect when
3218-
hovermode = closest
3217+
drawn for this axis. Note that spikes will never be
3218+
drawn when `hovermode` is False.
32193219
showticklabels
32203220
Determines whether or not the tick labels are drawn.
32213221
showtickprefix

plotly/labextension/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"dependencies": {
2121
"lodash-es": "^4.17.21",
22-
"plotly.js": "4.0.0",
22+
"plotly.js": "4.1.0",
2323
"@lumino/widgets": "~2.4.0"
2424
},
2525
"devDependencies": {
@@ -33,7 +33,7 @@
3333
"outputDir": "../plotly/labextension",
3434
"webpackConfig": "./webpack.config.js",
3535
"_build": {
36-
"load": "static/remoteEntry.6f1030bf65ead662.js",
36+
"load": "static/remoteEntry.25fcd7ead727dc9c.js",
3737
"mimeExtension": "./mimeExtension"
3838
}
3939
}

plotly/labextension/static/0.e889754e73c03c32.js renamed to plotly/labextension/static/0.8a60fe48f4849a5c.js

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

0 commit comments

Comments
 (0)