Skip to content

Commit b14f8ad

Browse files
Merge pull request #3935 from plotly/pjs2.16.1
update to plotly.js 2.16.1
2 parents 182fff2 + d5a345d commit b14f8ad

File tree

347 files changed

+8365
-262
lines changed

Some content is hidden

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

347 files changed

+8365
-262
lines changed

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
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.14.0 to version 2.16.1. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#2161----2022-10-21) for more information. Notable changes include:
9+
- Add clustering options to `scattermapbox` [[#5827](https://github.com/plotly/plotly.js/pull/5827)],
10+
with thanks to @elben10 for the contribution!
11+
- Add bounds to mapbox suplots [[6339](https://github.com/plotly/plotly.js/pull/6339)]
12+
- Add `angle`, `angleref` and `standoff` to `marker` and add `backoff` to `line`; also introduce new arrow symbols to facilitate drawing networks [[#6297](https://github.com/plotly/plotly.js/pull/6297)]
13+
- Add `minreducedwidth` and `minreducedheight` to layout for increasing control over automargin [[#6307](https://github.com/plotly/plotly.js/pull/6307)]
14+
- Add `entrywidth` and `entrywidthmode` to legend [[#6202](https://github.com/plotly/plotly.js/pull/6202), [#6324](https://github.com/plotly/plotly.js/pull/6324)]
15+
516
## [5.10.0] - 2022-08-11
617

718
### Updated

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.

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.14.0"
68+
"plotly.js": "^2.16.1"
6969
},
7070
"jupyterlab": {
7171
"extension": "lib/jupyterlab-plugin",

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

+892-22
Large diffs are not rendered by default.

packages/python/plotly/plotly/graph_objs/_bar.py

+33
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class Bar(_BaseTraceType):
3434
"legendgroup",
3535
"legendgrouptitle",
3636
"legendrank",
37+
"legendwidth",
3738
"marker",
3839
"meta",
3940
"metasrc",
@@ -851,6 +852,27 @@ def legendrank(self):
851852
def legendrank(self, val):
852853
self["legendrank"] = val
853854

855+
# legendwidth
856+
# -----------
857+
@property
858+
def legendwidth(self):
859+
"""
860+
Sets the width (in px or fraction) of the legend for this
861+
trace.
862+
863+
The 'legendwidth' property is a number and may be specified as:
864+
- An int or float in the interval [0, inf]
865+
866+
Returns
867+
-------
868+
int|float
869+
"""
870+
return self["legendwidth"]
871+
872+
@legendwidth.setter
873+
def legendwidth(self, val):
874+
self["legendwidth"] = val
875+
854876
# marker
855877
# ------
856878
@property
@@ -2244,6 +2266,9 @@ def _prop_descriptions(self):
22442266
that you can use ranks less than 1000 to place certain
22452267
items before all unranked items, and ranks greater than
22462268
1000 to go after all unranked items.
2269+
legendwidth
2270+
Sets the width (in px or fraction) of the legend for
2271+
this trace.
22472272
marker
22482273
:class:`plotly.graph_objects.bar.Marker` instance or
22492274
dict with compatible properties
@@ -2508,6 +2533,7 @@ def __init__(
25082533
legendgroup=None,
25092534
legendgrouptitle=None,
25102535
legendrank=None,
2536+
legendwidth=None,
25112537
marker=None,
25122538
meta=None,
25132539
metasrc=None,
@@ -2688,6 +2714,9 @@ def __init__(
26882714
that you can use ranks less than 1000 to place certain
26892715
items before all unranked items, and ranks greater than
26902716
1000 to go after all unranked items.
2717+
legendwidth
2718+
Sets the width (in px or fraction) of the legend for
2719+
this trace.
26912720
marker
26922721
:class:`plotly.graph_objects.bar.Marker` instance or
26932722
dict with compatible properties
@@ -3056,6 +3085,10 @@ def __init__(
30563085
_v = legendrank if legendrank is not None else _v
30573086
if _v is not None:
30583087
self["legendrank"] = _v
3088+
_v = arg.pop("legendwidth", None)
3089+
_v = legendwidth if legendwidth is not None else _v
3090+
if _v is not None:
3091+
self["legendwidth"] = _v
30593092
_v = arg.pop("marker", None)
30603093
_v = marker if marker is not None else _v
30613094
if _v is not None:

packages/python/plotly/plotly/graph_objs/_barpolar.py

+33
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class Barpolar(_BaseTraceType):
2727
"legendgroup",
2828
"legendgrouptitle",
2929
"legendrank",
30+
"legendwidth",
3031
"marker",
3132
"meta",
3233
"metasrc",
@@ -516,6 +517,27 @@ def legendrank(self):
516517
def legendrank(self, val):
517518
self["legendrank"] = val
518519

520+
# legendwidth
521+
# -----------
522+
@property
523+
def legendwidth(self):
524+
"""
525+
Sets the width (in px or fraction) of the legend for this
526+
trace.
527+
528+
The 'legendwidth' property is a number and may be specified as:
529+
- An int or float in the interval [0, inf]
530+
531+
Returns
532+
-------
533+
int|float
534+
"""
535+
return self["legendwidth"]
536+
537+
@legendwidth.setter
538+
def legendwidth(self, val):
539+
self["legendwidth"] = val
540+
519541
# marker
520542
# ------
521543
@property
@@ -1345,6 +1367,9 @@ def _prop_descriptions(self):
13451367
that you can use ranks less than 1000 to place certain
13461368
items before all unranked items, and ranks greater than
13471369
1000 to go after all unranked items.
1370+
legendwidth
1371+
Sets the width (in px or fraction) of the legend for
1372+
this trace.
13481373
marker
13491374
:class:`plotly.graph_objects.barpolar.Marker` instance
13501375
or dict with compatible properties
@@ -1483,6 +1508,7 @@ def __init__(
14831508
legendgroup=None,
14841509
legendgrouptitle=None,
14851510
legendrank=None,
1511+
legendwidth=None,
14861512
marker=None,
14871513
meta=None,
14881514
metasrc=None,
@@ -1613,6 +1639,9 @@ def __init__(
16131639
that you can use ranks less than 1000 to place certain
16141640
items before all unranked items, and ranks greater than
16151641
1000 to go after all unranked items.
1642+
legendwidth
1643+
Sets the width (in px or fraction) of the legend for
1644+
this trace.
16161645
marker
16171646
:class:`plotly.graph_objects.barpolar.Marker` instance
16181647
or dict with compatible properties
@@ -1834,6 +1863,10 @@ def __init__(
18341863
_v = legendrank if legendrank is not None else _v
18351864
if _v is not None:
18361865
self["legendrank"] = _v
1866+
_v = arg.pop("legendwidth", None)
1867+
_v = legendwidth if legendwidth is not None else _v
1868+
if _v is not None:
1869+
self["legendwidth"] = _v
18371870
_v = arg.pop("marker", None)
18381871
_v = marker if marker is not None else _v
18391872
if _v is not None:

packages/python/plotly/plotly/graph_objs/_box.py

+35
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class Box(_BaseTraceType):
3131
"legendgroup",
3232
"legendgrouptitle",
3333
"legendrank",
34+
"legendwidth",
3435
"line",
3536
"lowerfence",
3637
"lowerfencesrc",
@@ -693,6 +694,27 @@ def legendrank(self):
693694
def legendrank(self, val):
694695
self["legendrank"] = val
695696

697+
# legendwidth
698+
# -----------
699+
@property
700+
def legendwidth(self):
701+
"""
702+
Sets the width (in px or fraction) of the legend for this
703+
trace.
704+
705+
The 'legendwidth' property is a number and may be specified as:
706+
- An int or float in the interval [0, inf]
707+
708+
Returns
709+
-------
710+
int|float
711+
"""
712+
return self["legendwidth"]
713+
714+
@legendwidth.setter
715+
def legendwidth(self, val):
716+
self["legendwidth"] = val
717+
696718
# line
697719
# ----
698720
@property
@@ -780,6 +802,8 @@ def marker(self):
780802
781803
Supported dict properties:
782804
805+
angle
806+
Sets the marker angle in respect to `angleref`.
783807
color
784808
Sets the marker color. It accepts either a
785809
specific color or an array of numbers that are
@@ -2203,6 +2227,9 @@ def _prop_descriptions(self):
22032227
that you can use ranks less than 1000 to place certain
22042228
items before all unranked items, and ranks greater than
22052229
1000 to go after all unranked items.
2230+
legendwidth
2231+
Sets the width (in px or fraction) of the legend for
2232+
this trace.
22062233
line
22072234
:class:`plotly.graph_objects.box.Line` instance or dict
22082235
with compatible properties
@@ -2527,6 +2554,7 @@ def __init__(
25272554
legendgroup=None,
25282555
legendgrouptitle=None,
25292556
legendrank=None,
2557+
legendwidth=None,
25302558
line=None,
25312559
lowerfence=None,
25322560
lowerfencesrc=None,
@@ -2737,6 +2765,9 @@ def __init__(
27372765
that you can use ranks less than 1000 to place certain
27382766
items before all unranked items, and ranks greater than
27392767
1000 to go after all unranked items.
2768+
legendwidth
2769+
Sets the width (in px or fraction) of the legend for
2770+
this trace.
27402771
line
27412772
:class:`plotly.graph_objects.box.Line` instance or dict
27422773
with compatible properties
@@ -3156,6 +3187,10 @@ def __init__(
31563187
_v = legendrank if legendrank is not None else _v
31573188
if _v is not None:
31583189
self["legendrank"] = _v
3190+
_v = arg.pop("legendwidth", None)
3191+
_v = legendwidth if legendwidth is not None else _v
3192+
if _v is not None:
3193+
self["legendwidth"] = _v
31593194
_v = arg.pop("line", None)
31603195
_v = line if line is not None else _v
31613196
if _v is not None:

packages/python/plotly/plotly/graph_objs/_candlestick.py

+33
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class Candlestick(_BaseTraceType):
2727
"legendgroup",
2828
"legendgrouptitle",
2929
"legendrank",
30+
"legendwidth",
3031
"line",
3132
"low",
3233
"lowsrc",
@@ -518,6 +519,27 @@ def legendrank(self):
518519
def legendrank(self, val):
519520
self["legendrank"] = val
520521

522+
# legendwidth
523+
# -----------
524+
@property
525+
def legendwidth(self):
526+
"""
527+
Sets the width (in px or fraction) of the legend for this
528+
trace.
529+
530+
The 'legendwidth' property is a number and may be specified as:
531+
- An int or float in the interval [0, inf]
532+
533+
Returns
534+
-------
535+
int|float
536+
"""
537+
return self["legendwidth"]
538+
539+
@legendwidth.setter
540+
def legendwidth(self, val):
541+
self["legendwidth"] = val
542+
521543
# line
522544
# ----
523545
@property
@@ -1257,6 +1279,9 @@ def _prop_descriptions(self):
12571279
that you can use ranks less than 1000 to place certain
12581280
items before all unranked items, and ranks greater than
12591281
1000 to go after all unranked items.
1282+
legendwidth
1283+
Sets the width (in px or fraction) of the legend for
1284+
this trace.
12601285
line
12611286
:class:`plotly.graph_objects.candlestick.Line` instance
12621287
or dict with compatible properties
@@ -1426,6 +1451,7 @@ def __init__(
14261451
legendgroup=None,
14271452
legendgrouptitle=None,
14281453
legendrank=None,
1454+
legendwidth=None,
14291455
line=None,
14301456
low=None,
14311457
lowsrc=None,
@@ -1535,6 +1561,9 @@ def __init__(
15351561
that you can use ranks less than 1000 to place certain
15361562
items before all unranked items, and ranks greater than
15371563
1000 to go after all unranked items.
1564+
legendwidth
1565+
Sets the width (in px or fraction) of the legend for
1566+
this trace.
15381567
line
15391568
:class:`plotly.graph_objects.candlestick.Line` instance
15401569
or dict with compatible properties
@@ -1787,6 +1816,10 @@ def __init__(
17871816
_v = legendrank if legendrank is not None else _v
17881817
if _v is not None:
17891818
self["legendrank"] = _v
1819+
_v = arg.pop("legendwidth", None)
1820+
_v = legendwidth if legendwidth is not None else _v
1821+
if _v is not None:
1822+
self["legendwidth"] = _v
17901823
_v = arg.pop("line", None)
17911824
_v = line if line is not None else _v
17921825
if _v is not None:

0 commit comments

Comments
 (0)