Skip to content

Commit 22c495c

Browse files
authored
Update plotlyjs to 1.49.1 (#1701)
* Fix updateplotlyjs setup.py task * update to plotly.js 1.49.1 * update jupyterlab-plotly extension to plotly.js 1.49.1 * Get comparison version of plotly.js from plotlywidget extension
1 parent f42d248 commit 22c495c

File tree

248 files changed

+42639
-11363
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

248 files changed

+42639
-11363
lines changed

packages/javascript/jupyterlab-plotly/package-lock.json

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

packages/javascript/jupyterlab-plotly/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"typescript": "~3.1.1"
3232
},
3333
"dependencies": {
34-
"plotly.js": "^1.48.3",
34+
"plotly.js": "^1.49.1",
3535
"@types/plotly.js": "^1.44.9",
3636
"@jupyterlab/rendermime-interfaces": "^1.3.0",
3737
"@phosphor/messaging": "^1.2.3",

packages/javascript/plotlywidget/package-lock.json

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

packages/javascript/plotlywidget/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"typescript": "~3.1.1"
3636
},
3737
"dependencies": {
38-
"plotly.js": "^1.48.3",
38+
"plotly.js": "^1.49.1",
3939
"@jupyter-widgets/base": "^2.0.0",
4040
"lodash": "^4.17.4"
4141
},

packages/python/plotly/codegen/resources/plot-schema.json

+3,704-1,010
Large diffs are not rendered by default.

packages/python/plotly/plotly/graph_objs/__init__.py

+10,094-5,192
Large diffs are not rendered by default.

packages/python/plotly/plotly/graph_objs/_figure.py

+1,407-595
Large diffs are not rendered by default.

packages/python/plotly/plotly/graph_objs/_figurewidget.py

+1,407-595
Large diffs are not rendered by default.

packages/python/plotly/plotly/graph_objs/bar/__init__.py

+19-18
Original file line numberDiff line numberDiff line change
@@ -1422,12 +1422,13 @@ def colorbar(self):
14221422
tickformat
14231423
Sets the tick label formatting rule using d3
14241424
formatting mini-languages which are very
1425-
similar to those in Python. For numbers, see: h
1426-
ttps://github.com/d3/d3-format/blob/master/READ
1427-
ME.md#locale_format And for dates see:
1428-
https://github.com/d3/d3-time-
1429-
format/blob/master/README.md#locale_format We
1430-
add one item to d3's date formatter: "%{n}f"
1425+
similar to those in Python. For numbers, see:
1426+
https://github.com/d3/d3-3.x-api-
1427+
reference/blob/master/Formatting.md#d3_format
1428+
And for dates see:
1429+
https://github.com/d3/d3-3.x-api-
1430+
reference/blob/master/Time-Formatting.md#format
1431+
We add one item to d3's date formatter: "%{n}f"
14311432
for fractional seconds with n digits. For
14321433
example, *2016-10-13 09:15:23.456* with
14331434
tickformat "%H~%M~%S.%2f" would display
@@ -1538,7 +1539,7 @@ def colorscale(self):
15381539
containing arrays mapping a normalized value to an rgb, rgba,
15391540
hex, hsl, hsv, or named color string. At minimum, a mapping for
15401541
the lowest (0) and highest (1) values are required. For
1541-
example, `[[0, 'rgb(0,0,255)', [1, 'rgb(255,0,0)']]`. To
1542+
example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To
15421543
control the bounds of the colorscale in color space,
15431544
use`marker.cmin` and `marker.cmax`. Alternatively, `colorscale`
15441545
may be a palette name string of the following list: Greys,YlGnB
@@ -1677,9 +1678,9 @@ def line(self):
16771678
rgba, hex, hsl, hsv, or named color string. At
16781679
minimum, a mapping for the lowest (0) and
16791680
highest (1) values are required. For example,
1680-
`[[0, 'rgb(0,0,255)', [1, 'rgb(255,0,0)']]`. To
1681-
control the bounds of the colorscale in color
1682-
space, use`marker.line.cmin` and
1681+
`[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`.
1682+
To control the bounds of the colorscale in
1683+
color space, use`marker.line.cmin` and
16831684
`marker.line.cmax`. Alternatively, `colorscale`
16841685
may be a palette name string of the following
16851686
list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,R
@@ -1865,7 +1866,7 @@ def _prop_descriptions(self):
18651866
normalized value to an rgb, rgba, hex, hsl, hsv, or
18661867
named color string. At minimum, a mapping for the
18671868
lowest (0) and highest (1) values are required. For
1868-
example, `[[0, 'rgb(0,0,255)', [1, 'rgb(255,0,0)']]`.
1869+
example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`.
18691870
To control the bounds of the colorscale in color space,
18701871
use`marker.cmin` and `marker.cmax`. Alternatively,
18711872
`colorscale` may be a palette name string of the
@@ -1977,7 +1978,7 @@ def __init__(
19771978
normalized value to an rgb, rgba, hex, hsl, hsv, or
19781979
named color string. At minimum, a mapping for the
19791980
lowest (0) and highest (1) values are required. For
1980-
example, `[[0, 'rgb(0,0,255)', [1, 'rgb(255,0,0)']]`.
1981+
example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`.
19811982
To control the bounds of the colorscale in color space,
19821983
use`marker.cmin` and `marker.cmax`. Alternatively,
19831984
`colorscale` may be a palette name string of the
@@ -3129,7 +3130,7 @@ def type(self):
31293130
constant in `value`. If "percent", the bar lengths correspond
31303131
to a percentage of underlying data. Set this percentage in
31313132
`value`. If "sqrt", the bar lengths correspond to the sqaure of
3132-
the underlying data. If "array", the bar lengths are set with
3133+
the underlying data. If "data", the bar lengths are set with
31333134
data set `array`.
31343135
31353136
The 'type' property is an enumeration that may be specified as:
@@ -3275,7 +3276,7 @@ def _prop_descriptions(self):
32753276
lengths correspond to a percentage of underlying data.
32763277
Set this percentage in `value`. If "sqrt", the bar
32773278
lengths correspond to the sqaure of the underlying
3278-
data. If "array", the bar lengths are set with data set
3279+
data. If "data", the bar lengths are set with data set
32793280
`array`.
32803281
value
32813282
Sets the value of either the percentage (if `type` is
@@ -3355,7 +3356,7 @@ def __init__(
33553356
lengths correspond to a percentage of underlying data.
33563357
Set this percentage in `value`. If "sqrt", the bar
33573358
lengths correspond to the sqaure of the underlying
3358-
data. If "array", the bar lengths are set with data set
3359+
data. If "data", the bar lengths are set with data set
33593360
`array`.
33603361
value
33613362
Sets the value of either the percentage (if `type` is
@@ -3718,7 +3719,7 @@ def type(self):
37183719
constant in `value`. If "percent", the bar lengths correspond
37193720
to a percentage of underlying data. Set this percentage in
37203721
`value`. If "sqrt", the bar lengths correspond to the sqaure of
3721-
the underlying data. If "array", the bar lengths are set with
3722+
the underlying data. If "data", the bar lengths are set with
37223723
data set `array`.
37233724
37243725
The 'type' property is an enumeration that may be specified as:
@@ -3866,7 +3867,7 @@ def _prop_descriptions(self):
38663867
lengths correspond to a percentage of underlying data.
38673868
Set this percentage in `value`. If "sqrt", the bar
38683869
lengths correspond to the sqaure of the underlying
3869-
data. If "array", the bar lengths are set with data set
3870+
data. If "data", the bar lengths are set with data set
38703871
`array`.
38713872
value
38723873
Sets the value of either the percentage (if `type` is
@@ -3949,7 +3950,7 @@ def __init__(
39493950
lengths correspond to a percentage of underlying data.
39503951
Set this percentage in `value`. If "sqrt", the bar
39513952
lengths correspond to the sqaure of the underlying
3952-
data. If "array", the bar lengths are set with data set
3953+
data. If "data", the bar lengths are set with data set
39533954
`array`.
39543955
value
39553956
Sets the value of either the percentage (if `type` is

packages/python/plotly/plotly/graph_objs/bar/marker/__init__.py

+20-18
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def colorscale(self):
228228
must be an array containing arrays mapping a normalized value
229229
to an rgb, rgba, hex, hsl, hsv, or named color string. At
230230
minimum, a mapping for the lowest (0) and highest (1) values
231-
are required. For example, `[[0, 'rgb(0,0,255)', [1,
231+
are required. For example, `[[0, 'rgb(0,0,255)'], [1,
232232
'rgb(255,0,0)']]`. To control the bounds of the colorscale in
233233
color space, use`marker.line.cmin` and `marker.line.cmax`.
234234
Alternatively, `colorscale` may be a palette name string of the
@@ -424,7 +424,7 @@ def _prop_descriptions(self):
424424
normalized value to an rgb, rgba, hex, hsl, hsv, or
425425
named color string. At minimum, a mapping for the
426426
lowest (0) and highest (1) values are required. For
427-
example, `[[0, 'rgb(0,0,255)', [1, 'rgb(255,0,0)']]`.
427+
example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`.
428428
To control the bounds of the colorscale in color space,
429429
use`marker.line.cmin` and `marker.line.cmax`.
430430
Alternatively, `colorscale` may be a palette name
@@ -528,7 +528,7 @@ def __init__(
528528
normalized value to an rgb, rgba, hex, hsl, hsv, or
529529
named color string. At minimum, a mapping for the
530530
lowest (0) and highest (1) values are required. For
531-
example, `[[0, 'rgb(0,0,255)', [1, 'rgb(255,0,0)']]`.
531+
example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`.
532532
To control the bounds of the colorscale in color space,
533533
use`marker.line.cmin` and `marker.line.cmax`.
534534
Alternatively, `colorscale` may be a palette name
@@ -1300,11 +1300,11 @@ def tickformat(self):
13001300
"""
13011301
Sets the tick label formatting rule using d3 formatting mini-
13021302
languages which are very similar to those in Python. For
1303-
numbers, see: https://github.com/d3/d3-format/blob/master/READM
1304-
E.md#locale_format And for dates see:
1305-
https://github.com/d3/d3-time-
1306-
format/blob/master/README.md#locale_format We add one item to
1307-
d3's date formatter: "%{n}f" for fractional seconds with n
1303+
numbers, see: https://github.com/d3/d3-3.x-api-
1304+
reference/blob/master/Formatting.md#d3_format And for dates
1305+
see: https://github.com/d3/d3-3.x-api-
1306+
reference/blob/master/Time-Formatting.md#format We add one item
1307+
to d3's date formatter: "%{n}f" for fractional seconds with n
13081308
digits. For example, *2016-10-13 09:15:23.456* with tickformat
13091309
"%H~%M~%S.%2f" would display "09~15~23.46"
13101310
@@ -1970,11 +1970,12 @@ def _prop_descriptions(self):
19701970
tickformat
19711971
Sets the tick label formatting rule using d3 formatting
19721972
mini-languages which are very similar to those in
1973-
Python. For numbers, see: https://github.com/d3/d3-form
1974-
at/blob/master/README.md#locale_format And for dates
1975-
see: https://github.com/d3/d3-time-
1976-
format/blob/master/README.md#locale_format We add one
1977-
item to d3's date formatter: "%{n}f" for fractional
1973+
Python. For numbers, see:
1974+
https://github.com/d3/d3-3.x-api-
1975+
reference/blob/master/Formatting.md#d3_format And for
1976+
dates see: https://github.com/d3/d3-3.x-api-
1977+
reference/blob/master/Time-Formatting.md#format We add
1978+
one item to d3's date formatter: "%{n}f" for fractional
19781979
seconds with n digits. For example, *2016-10-13
19791980
09:15:23.456* with tickformat "%H~%M~%S.%2f" would
19801981
display "09~15~23.46"
@@ -2219,11 +2220,12 @@ def __init__(
22192220
tickformat
22202221
Sets the tick label formatting rule using d3 formatting
22212222
mini-languages which are very similar to those in
2222-
Python. For numbers, see: https://github.com/d3/d3-form
2223-
at/blob/master/README.md#locale_format And for dates
2224-
see: https://github.com/d3/d3-time-
2225-
format/blob/master/README.md#locale_format We add one
2226-
item to d3's date formatter: "%{n}f" for fractional
2223+
Python. For numbers, see:
2224+
https://github.com/d3/d3-3.x-api-
2225+
reference/blob/master/Formatting.md#d3_format And for
2226+
dates see: https://github.com/d3/d3-3.x-api-
2227+
reference/blob/master/Time-Formatting.md#format We add
2228+
one item to d3's date formatter: "%{n}f" for fractional
22272229
seconds with n digits. For example, *2016-10-13
22282230
09:15:23.456* with tickformat "%H~%M~%S.%2f" would
22292231
display "09~15~23.46"

packages/python/plotly/plotly/graph_objs/barpolar/__init__.py

+13-12
Original file line numberDiff line numberDiff line change
@@ -780,12 +780,13 @@ def colorbar(self):
780780
tickformat
781781
Sets the tick label formatting rule using d3
782782
formatting mini-languages which are very
783-
similar to those in Python. For numbers, see: h
784-
ttps://github.com/d3/d3-format/blob/master/READ
785-
ME.md#locale_format And for dates see:
786-
https://github.com/d3/d3-time-
787-
format/blob/master/README.md#locale_format We
788-
add one item to d3's date formatter: "%{n}f"
783+
similar to those in Python. For numbers, see:
784+
https://github.com/d3/d3-3.x-api-
785+
reference/blob/master/Formatting.md#d3_format
786+
And for dates see:
787+
https://github.com/d3/d3-3.x-api-
788+
reference/blob/master/Time-Formatting.md#format
789+
We add one item to d3's date formatter: "%{n}f"
789790
for fractional seconds with n digits. For
790791
example, *2016-10-13 09:15:23.456* with
791792
tickformat "%H~%M~%S.%2f" would display
@@ -898,7 +899,7 @@ def colorscale(self):
898899
containing arrays mapping a normalized value to an rgb, rgba,
899900
hex, hsl, hsv, or named color string. At minimum, a mapping for
900901
the lowest (0) and highest (1) values are required. For
901-
example, `[[0, 'rgb(0,0,255)', [1, 'rgb(255,0,0)']]`. To
902+
example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To
902903
control the bounds of the colorscale in color space,
903904
use`marker.cmin` and `marker.cmax`. Alternatively, `colorscale`
904905
may be a palette name string of the following list: Greys,YlGnB
@@ -1037,9 +1038,9 @@ def line(self):
10371038
rgba, hex, hsl, hsv, or named color string. At
10381039
minimum, a mapping for the lowest (0) and
10391040
highest (1) values are required. For example,
1040-
`[[0, 'rgb(0,0,255)', [1, 'rgb(255,0,0)']]`. To
1041-
control the bounds of the colorscale in color
1042-
space, use`marker.line.cmin` and
1041+
`[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`.
1042+
To control the bounds of the colorscale in
1043+
color space, use`marker.line.cmin` and
10431044
`marker.line.cmax`. Alternatively, `colorscale`
10441045
may be a palette name string of the following
10451046
list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,R
@@ -1225,7 +1226,7 @@ def _prop_descriptions(self):
12251226
normalized value to an rgb, rgba, hex, hsl, hsv, or
12261227
named color string. At minimum, a mapping for the
12271228
lowest (0) and highest (1) values are required. For
1228-
example, `[[0, 'rgb(0,0,255)', [1, 'rgb(255,0,0)']]`.
1229+
example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`.
12291230
To control the bounds of the colorscale in color space,
12301231
use`marker.cmin` and `marker.cmax`. Alternatively,
12311232
`colorscale` may be a palette name string of the
@@ -1337,7 +1338,7 @@ def __init__(
13371338
normalized value to an rgb, rgba, hex, hsl, hsv, or
13381339
named color string. At minimum, a mapping for the
13391340
lowest (0) and highest (1) values are required. For
1340-
example, `[[0, 'rgb(0,0,255)', [1, 'rgb(255,0,0)']]`.
1341+
example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`.
13411342
To control the bounds of the colorscale in color space,
13421343
use`marker.cmin` and `marker.cmax`. Alternatively,
13431344
`colorscale` may be a palette name string of the

packages/python/plotly/plotly/graph_objs/barpolar/marker/__init__.py

+20-18
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def colorscale(self):
228228
must be an array containing arrays mapping a normalized value
229229
to an rgb, rgba, hex, hsl, hsv, or named color string. At
230230
minimum, a mapping for the lowest (0) and highest (1) values
231-
are required. For example, `[[0, 'rgb(0,0,255)', [1,
231+
are required. For example, `[[0, 'rgb(0,0,255)'], [1,
232232
'rgb(255,0,0)']]`. To control the bounds of the colorscale in
233233
color space, use`marker.line.cmin` and `marker.line.cmax`.
234234
Alternatively, `colorscale` may be a palette name string of the
@@ -424,7 +424,7 @@ def _prop_descriptions(self):
424424
normalized value to an rgb, rgba, hex, hsl, hsv, or
425425
named color string. At minimum, a mapping for the
426426
lowest (0) and highest (1) values are required. For
427-
example, `[[0, 'rgb(0,0,255)', [1, 'rgb(255,0,0)']]`.
427+
example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`.
428428
To control the bounds of the colorscale in color space,
429429
use`marker.line.cmin` and `marker.line.cmax`.
430430
Alternatively, `colorscale` may be a palette name
@@ -528,7 +528,7 @@ def __init__(
528528
normalized value to an rgb, rgba, hex, hsl, hsv, or
529529
named color string. At minimum, a mapping for the
530530
lowest (0) and highest (1) values are required. For
531-
example, `[[0, 'rgb(0,0,255)', [1, 'rgb(255,0,0)']]`.
531+
example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`.
532532
To control the bounds of the colorscale in color space,
533533
use`marker.line.cmin` and `marker.line.cmax`.
534534
Alternatively, `colorscale` may be a palette name
@@ -1300,11 +1300,11 @@ def tickformat(self):
13001300
"""
13011301
Sets the tick label formatting rule using d3 formatting mini-
13021302
languages which are very similar to those in Python. For
1303-
numbers, see: https://github.com/d3/d3-format/blob/master/READM
1304-
E.md#locale_format And for dates see:
1305-
https://github.com/d3/d3-time-
1306-
format/blob/master/README.md#locale_format We add one item to
1307-
d3's date formatter: "%{n}f" for fractional seconds with n
1303+
numbers, see: https://github.com/d3/d3-3.x-api-
1304+
reference/blob/master/Formatting.md#d3_format And for dates
1305+
see: https://github.com/d3/d3-3.x-api-
1306+
reference/blob/master/Time-Formatting.md#format We add one item
1307+
to d3's date formatter: "%{n}f" for fractional seconds with n
13081308
digits. For example, *2016-10-13 09:15:23.456* with tickformat
13091309
"%H~%M~%S.%2f" would display "09~15~23.46"
13101310
@@ -1972,11 +1972,12 @@ def _prop_descriptions(self):
19721972
tickformat
19731973
Sets the tick label formatting rule using d3 formatting
19741974
mini-languages which are very similar to those in
1975-
Python. For numbers, see: https://github.com/d3/d3-form
1976-
at/blob/master/README.md#locale_format And for dates
1977-
see: https://github.com/d3/d3-time-
1978-
format/blob/master/README.md#locale_format We add one
1979-
item to d3's date formatter: "%{n}f" for fractional
1975+
Python. For numbers, see:
1976+
https://github.com/d3/d3-3.x-api-
1977+
reference/blob/master/Formatting.md#d3_format And for
1978+
dates see: https://github.com/d3/d3-3.x-api-
1979+
reference/blob/master/Time-Formatting.md#format We add
1980+
one item to d3's date formatter: "%{n}f" for fractional
19801981
seconds with n digits. For example, *2016-10-13
19811982
09:15:23.456* with tickformat "%H~%M~%S.%2f" would
19821983
display "09~15~23.46"
@@ -2222,11 +2223,12 @@ def __init__(
22222223
tickformat
22232224
Sets the tick label formatting rule using d3 formatting
22242225
mini-languages which are very similar to those in
2225-
Python. For numbers, see: https://github.com/d3/d3-form
2226-
at/blob/master/README.md#locale_format And for dates
2227-
see: https://github.com/d3/d3-time-
2228-
format/blob/master/README.md#locale_format We add one
2229-
item to d3's date formatter: "%{n}f" for fractional
2226+
Python. For numbers, see:
2227+
https://github.com/d3/d3-3.x-api-
2228+
reference/blob/master/Formatting.md#d3_format And for
2229+
dates see: https://github.com/d3/d3-3.x-api-
2230+
reference/blob/master/Time-Formatting.md#format We add
2231+
one item to d3's date formatter: "%{n}f" for fractional
22302232
seconds with n digits. For example, *2016-10-13
22312233
09:15:23.456* with tickformat "%H~%M~%S.%2f" would
22322234
display "09~15~23.46"

0 commit comments

Comments
 (0)