Skip to content

Commit 0bf1a2b

Browse files
bump plotly.js to 2.18
1 parent 179e0d8 commit 0bf1a2b

File tree

13 files changed

+61
-32
lines changed

13 files changed

+61
-32
lines changed

Diff for: CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## UNRELEASED
6+
7+
### Updated
8+
- Updated Plotly.js to from version 2.17.1 to version 2.18.0. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#2180----2023-01-19) for more information. Notable changes include:
9+
- Add `sync` tickmode option [[#6356](https://github.com/plotly/plotly.js/pull/6356), [#6443](https://github.com/plotly/plotly.js/pull/6443)], with thanks to @filipesantiagoAM and @VictorBezak for the contribution!
10+
11+
512
## [5.12.0] - 2023-01-12
613

714
### Updated

Diff for: packages/javascript/jupyterlab-plotly/package-lock.json

+10-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: packages/javascript/jupyterlab-plotly/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"@lumino/messaging": "^1.2.3",
6666
"@lumino/widgets": "^1.8.1",
6767
"lodash": "^4.17.4",
68-
"plotly.js": "^2.17.1"
68+
"plotly.js": "^2.18.0"
6969
},
7070
"jupyterlab": {
7171
"extension": "lib/jupyterlab-plugin",

Diff for: packages/python/plotly/codegen/resources/plot-schema.json

+6-4
Original file line numberDiff line numberDiff line change
@@ -11005,14 +11005,15 @@
1100511005
"valType": "number"
1100611006
},
1100711007
"tickmode": {
11008-
"description": "Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided).",
11008+
"description": "Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). If *sync*, the number of ticks will sync with the overlayed axis set by `overlaying` property.",
1100911009
"editType": "ticks",
1101011010
"impliedEdits": {},
1101111011
"valType": "enumerated",
1101211012
"values": [
1101311013
"auto",
1101411014
"linear",
11015-
"array"
11015+
"array",
11016+
"sync"
1101611017
]
1101711018
},
1101811019
"tickprefix": {
@@ -12013,14 +12014,15 @@
1201312014
"valType": "number"
1201412015
},
1201512016
"tickmode": {
12016-
"description": "Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided).",
12017+
"description": "Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). If *sync*, the number of ticks will sync with the overlayed axis set by `overlaying` property.",
1201712018
"editType": "ticks",
1201812019
"impliedEdits": {},
1201912020
"valType": "enumerated",
1202012021
"values": [
1202112022
"auto",
1202212023
"linear",
12023-
"array"
12024+
"array",
12025+
"sync"
1202412026
]
1202512027
},
1202612028
"tickprefix": {

Diff for: packages/python/plotly/plotly/graph_objs/_layout.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -4567,7 +4567,9 @@ def xaxis(self):
45674567
"array", the placement of the ticks is set via
45684568
`tickvals` and the tick text is `ticktext`.
45694569
("array" is the default value if `tickvals` is
4570-
provided).
4570+
provided). If "sync", the number of ticks will
4571+
sync with the overlayed axis set by
4572+
`overlaying` property.
45714573
tickprefix
45724574
Sets a tick label prefix.
45734575
ticks
@@ -5089,7 +5091,9 @@ def yaxis(self):
50895091
"array", the placement of the ticks is set via
50905092
`tickvals` and the tick text is `ticktext`.
50915093
("array" is the default value if `tickvals` is
5092-
provided).
5094+
provided). If "sync", the number of ticks will
5095+
sync with the overlayed axis set by
5096+
`overlaying` property.
50935097
tickprefix
50945098
Sets a tick label prefix.
50955099
ticks

Diff for: packages/python/plotly/plotly/graph_objs/layout/_xaxis.py

+10-4
Original file line numberDiff line numberDiff line change
@@ -2229,11 +2229,13 @@ def tickmode(self):
22292229
step `dtick` ("linear" is the default value if `tick0` and
22302230
`dtick` are provided). If "array", the placement of the ticks
22312231
is set via `tickvals` and the tick text is `ticktext`. ("array"
2232-
is the default value if `tickvals` is provided).
2232+
is the default value if `tickvals` is provided). If "sync", the
2233+
number of ticks will sync with the overlayed axis set by
2234+
`overlaying` property.
22332235
22342236
The 'tickmode' property is an enumeration that may be specified as:
22352237
- One of the following enumeration values:
2236-
['auto', 'linear', 'array']
2238+
['auto', 'linear', 'array', 'sync']
22372239
22382240
Returns
22392241
-------
@@ -3083,7 +3085,9 @@ def _prop_descriptions(self):
30833085
the default value if `tick0` and `dtick` are provided).
30843086
If "array", the placement of the ticks is set via
30853087
`tickvals` and the tick text is `ticktext`. ("array" is
3086-
the default value if `tickvals` is provided).
3088+
the default value if `tickvals` is provided). If
3089+
"sync", the number of ticks will sync with the
3090+
overlayed axis set by `overlaying` property.
30873091
tickprefix
30883092
Sets a tick label prefix.
30893093
ticks
@@ -3622,7 +3626,9 @@ def __init__(
36223626
the default value if `tick0` and `dtick` are provided).
36233627
If "array", the placement of the ticks is set via
36243628
`tickvals` and the tick text is `ticktext`. ("array" is
3625-
the default value if `tickvals` is provided).
3629+
the default value if `tickvals` is provided). If
3630+
"sync", the number of ticks will sync with the
3631+
overlayed axis set by `overlaying` property.
36263632
tickprefix
36273633
Sets a tick label prefix.
36283634
ticks

Diff for: packages/python/plotly/plotly/graph_objs/layout/_yaxis.py

+10-4
Original file line numberDiff line numberDiff line change
@@ -2152,11 +2152,13 @@ def tickmode(self):
21522152
step `dtick` ("linear" is the default value if `tick0` and
21532153
`dtick` are provided). If "array", the placement of the ticks
21542154
is set via `tickvals` and the tick text is `ticktext`. ("array"
2155-
is the default value if `tickvals` is provided).
2155+
is the default value if `tickvals` is provided). If "sync", the
2156+
number of ticks will sync with the overlayed axis set by
2157+
`overlaying` property.
21562158
21572159
The 'tickmode' property is an enumeration that may be specified as:
21582160
- One of the following enumeration values:
2159-
['auto', 'linear', 'array']
2161+
['auto', 'linear', 'array', 'sync']
21602162
21612163
Returns
21622164
-------
@@ -3016,7 +3018,9 @@ def _prop_descriptions(self):
30163018
the default value if `tick0` and `dtick` are provided).
30173019
If "array", the placement of the ticks is set via
30183020
`tickvals` and the tick text is `ticktext`. ("array" is
3019-
the default value if `tickvals` is provided).
3021+
the default value if `tickvals` is provided). If
3022+
"sync", the number of ticks will sync with the
3023+
overlayed axis set by `overlaying` property.
30203024
tickprefix
30213025
Sets a tick label prefix.
30223026
ticks
@@ -3565,7 +3569,9 @@ def __init__(
35653569
the default value if `tick0` and `dtick` are provided).
35663570
If "array", the placement of the ticks is set via
35673571
`tickvals` and the tick text is `ticktext`. ("array" is
3568-
the default value if `tickvals` is provided).
3572+
the default value if `tickvals` is provided). If
3573+
"sync", the number of ticks will sync with the
3574+
overlayed axis set by `overlaying` property.
35693575
tickprefix
35703576
Sets a tick label prefix.
35713577
ticks
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# DO NOT EDIT
22
# This file is generated by the updatebundle setup.py command
3-
__plotlyjs_version__ = "2.17.1"
3+
__plotlyjs_version__ = "2.18.0"

Diff for: packages/python/plotly/plotly/package_data/plotly.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: packages/python/plotly/plotly/validators/layout/_xaxis.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,9 @@ def __init__(self, plotly_name="xaxis", parent_name="layout", **kwargs):
432432
"array", the placement of the ticks is set via
433433
`tickvals` and the tick text is `ticktext`.
434434
("array" is the default value if `tickvals` is
435-
provided).
435+
provided). If "sync", the number of ticks will
436+
sync with the overlayed axis set by
437+
`overlaying` property.
436438
tickprefix
437439
Sets a tick label prefix.
438440
ticks

Diff for: packages/python/plotly/plotly/validators/layout/_yaxis.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,9 @@ def __init__(self, plotly_name="yaxis", parent_name="layout", **kwargs):
443443
"array", the placement of the ticks is set via
444444
`tickvals` and the tick text is `ticktext`.
445445
("array" is the default value if `tickvals` is
446-
provided).
446+
provided). If "sync", the number of ticks will
447+
sync with the overlayed axis set by
448+
`overlaying` property.
447449
tickprefix
448450
Sets a tick label prefix.
449451
ticks

Diff for: packages/python/plotly/plotly/validators/layout/xaxis/_tickmode.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ def __init__(self, plotly_name="tickmode", parent_name="layout.xaxis", **kwargs)
88
parent_name=parent_name,
99
edit_type=kwargs.pop("edit_type", "ticks"),
1010
implied_edits=kwargs.pop("implied_edits", {}),
11-
values=kwargs.pop("values", ["auto", "linear", "array"]),
11+
values=kwargs.pop("values", ["auto", "linear", "array", "sync"]),
1212
**kwargs,
1313
)

Diff for: packages/python/plotly/plotly/validators/layout/yaxis/_tickmode.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ def __init__(self, plotly_name="tickmode", parent_name="layout.yaxis", **kwargs)
88
parent_name=parent_name,
99
edit_type=kwargs.pop("edit_type", "ticks"),
1010
implied_edits=kwargs.pop("implied_edits", {}),
11-
values=kwargs.pop("values", ["auto", "linear", "array"]),
11+
values=kwargs.pop("values", ["auto", "linear", "array", "sync"]),
1212
**kwargs,
1313
)

0 commit comments

Comments
 (0)