Skip to content

update to plotly.js 2.16.1 #3935

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## UNRELEASED

### Updated
- 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:
- Add clustering options to `scattermapbox` [[#5827](https://github.com/plotly/plotly.js/pull/5827)],
with thanks to @elben10 for the contribution!
- Add bounds to mapbox suplots [[6339](https://github.com/plotly/plotly.js/pull/6339)]
- 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)]
- Add `minreducedwidth` and `minreducedheight` to layout for increasing control over automargin [[#6307](https://github.com/plotly/plotly.js/pull/6307)]
- Add `entrywidth` and `entrywidthmode` to legend [[#6202](https://github.com/plotly/plotly.js/pull/6202), [#6324](https://github.com/plotly/plotly.js/pull/6324)]

## [5.10.0] - 2022-08-11

### Updated
Expand Down
20 changes: 10 additions & 10 deletions packages/javascript/jupyterlab-plotly/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/javascript/jupyterlab-plotly/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"@lumino/messaging": "^1.2.3",
"@lumino/widgets": "^1.8.1",
"lodash": "^4.17.4",
"plotly.js": "^2.14.0"
"plotly.js": "^2.16.1"
},
"jupyterlab": {
"extension": "lib/jupyterlab-plugin",
Expand Down
914 changes: 892 additions & 22 deletions packages/python/plotly/codegen/resources/plot-schema.json

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions packages/python/plotly/plotly/graph_objs/_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class Bar(_BaseTraceType):
"legendgroup",
"legendgrouptitle",
"legendrank",
"legendwidth",
"marker",
"meta",
"metasrc",
Expand Down Expand Up @@ -851,6 +852,27 @@ def legendrank(self):
def legendrank(self, val):
self["legendrank"] = val

# legendwidth
# -----------
@property
def legendwidth(self):
"""
Sets the width (in px or fraction) of the legend for this
trace.

The 'legendwidth' property is a number and may be specified as:
- An int or float in the interval [0, inf]

Returns
-------
int|float
"""
return self["legendwidth"]

@legendwidth.setter
def legendwidth(self, val):
self["legendwidth"] = val

# marker
# ------
@property
Expand Down Expand Up @@ -2244,6 +2266,9 @@ def _prop_descriptions(self):
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.
legendwidth
Sets the width (in px or fraction) of the legend for
this trace.
marker
:class:`plotly.graph_objects.bar.Marker` instance or
dict with compatible properties
Expand Down Expand Up @@ -2508,6 +2533,7 @@ def __init__(
legendgroup=None,
legendgrouptitle=None,
legendrank=None,
legendwidth=None,
marker=None,
meta=None,
metasrc=None,
Expand Down Expand Up @@ -2688,6 +2714,9 @@ def __init__(
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.
legendwidth
Sets the width (in px or fraction) of the legend for
this trace.
marker
:class:`plotly.graph_objects.bar.Marker` instance or
dict with compatible properties
Expand Down Expand Up @@ -3056,6 +3085,10 @@ def __init__(
_v = legendrank if legendrank is not None else _v
if _v is not None:
self["legendrank"] = _v
_v = arg.pop("legendwidth", None)
_v = legendwidth if legendwidth is not None else _v
if _v is not None:
self["legendwidth"] = _v
_v = arg.pop("marker", None)
_v = marker if marker is not None else _v
if _v is not None:
Expand Down
33 changes: 33 additions & 0 deletions packages/python/plotly/plotly/graph_objs/_barpolar.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class Barpolar(_BaseTraceType):
"legendgroup",
"legendgrouptitle",
"legendrank",
"legendwidth",
"marker",
"meta",
"metasrc",
Expand Down Expand Up @@ -516,6 +517,27 @@ def legendrank(self):
def legendrank(self, val):
self["legendrank"] = val

# legendwidth
# -----------
@property
def legendwidth(self):
"""
Sets the width (in px or fraction) of the legend for this
trace.

The 'legendwidth' property is a number and may be specified as:
- An int or float in the interval [0, inf]

Returns
-------
int|float
"""
return self["legendwidth"]

@legendwidth.setter
def legendwidth(self, val):
self["legendwidth"] = val

# marker
# ------
@property
Expand Down Expand Up @@ -1345,6 +1367,9 @@ def _prop_descriptions(self):
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.
legendwidth
Sets the width (in px or fraction) of the legend for
this trace.
marker
:class:`plotly.graph_objects.barpolar.Marker` instance
or dict with compatible properties
Expand Down Expand Up @@ -1483,6 +1508,7 @@ def __init__(
legendgroup=None,
legendgrouptitle=None,
legendrank=None,
legendwidth=None,
marker=None,
meta=None,
metasrc=None,
Expand Down Expand Up @@ -1613,6 +1639,9 @@ def __init__(
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.
legendwidth
Sets the width (in px or fraction) of the legend for
this trace.
marker
:class:`plotly.graph_objects.barpolar.Marker` instance
or dict with compatible properties
Expand Down Expand Up @@ -1834,6 +1863,10 @@ def __init__(
_v = legendrank if legendrank is not None else _v
if _v is not None:
self["legendrank"] = _v
_v = arg.pop("legendwidth", None)
_v = legendwidth if legendwidth is not None else _v
if _v is not None:
self["legendwidth"] = _v
_v = arg.pop("marker", None)
_v = marker if marker is not None else _v
if _v is not None:
Expand Down
35 changes: 35 additions & 0 deletions packages/python/plotly/plotly/graph_objs/_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class Box(_BaseTraceType):
"legendgroup",
"legendgrouptitle",
"legendrank",
"legendwidth",
"line",
"lowerfence",
"lowerfencesrc",
Expand Down Expand Up @@ -693,6 +694,27 @@ def legendrank(self):
def legendrank(self, val):
self["legendrank"] = val

# legendwidth
# -----------
@property
def legendwidth(self):
"""
Sets the width (in px or fraction) of the legend for this
trace.

The 'legendwidth' property is a number and may be specified as:
- An int or float in the interval [0, inf]

Returns
-------
int|float
"""
return self["legendwidth"]

@legendwidth.setter
def legendwidth(self, val):
self["legendwidth"] = val

# line
# ----
@property
Expand Down Expand Up @@ -780,6 +802,8 @@ def marker(self):

Supported dict properties:

angle
Sets the marker angle in respect to `angleref`.
color
Sets the marker color. It accepts either a
specific color or an array of numbers that are
Expand Down Expand Up @@ -2203,6 +2227,9 @@ def _prop_descriptions(self):
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.
legendwidth
Sets the width (in px or fraction) of the legend for
this trace.
line
:class:`plotly.graph_objects.box.Line` instance or dict
with compatible properties
Expand Down Expand Up @@ -2527,6 +2554,7 @@ def __init__(
legendgroup=None,
legendgrouptitle=None,
legendrank=None,
legendwidth=None,
line=None,
lowerfence=None,
lowerfencesrc=None,
Expand Down Expand Up @@ -2737,6 +2765,9 @@ def __init__(
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.
legendwidth
Sets the width (in px or fraction) of the legend for
this trace.
line
:class:`plotly.graph_objects.box.Line` instance or dict
with compatible properties
Expand Down Expand Up @@ -3156,6 +3187,10 @@ def __init__(
_v = legendrank if legendrank is not None else _v
if _v is not None:
self["legendrank"] = _v
_v = arg.pop("legendwidth", None)
_v = legendwidth if legendwidth is not None else _v
if _v is not None:
self["legendwidth"] = _v
_v = arg.pop("line", None)
_v = line if line is not None else _v
if _v is not None:
Expand Down
33 changes: 33 additions & 0 deletions packages/python/plotly/plotly/graph_objs/_candlestick.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class Candlestick(_BaseTraceType):
"legendgroup",
"legendgrouptitle",
"legendrank",
"legendwidth",
"line",
"low",
"lowsrc",
Expand Down Expand Up @@ -518,6 +519,27 @@ def legendrank(self):
def legendrank(self, val):
self["legendrank"] = val

# legendwidth
# -----------
@property
def legendwidth(self):
"""
Sets the width (in px or fraction) of the legend for this
trace.

The 'legendwidth' property is a number and may be specified as:
- An int or float in the interval [0, inf]

Returns
-------
int|float
"""
return self["legendwidth"]

@legendwidth.setter
def legendwidth(self, val):
self["legendwidth"] = val

# line
# ----
@property
Expand Down Expand Up @@ -1257,6 +1279,9 @@ def _prop_descriptions(self):
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.
legendwidth
Sets the width (in px or fraction) of the legend for
this trace.
line
:class:`plotly.graph_objects.candlestick.Line` instance
or dict with compatible properties
Expand Down Expand Up @@ -1426,6 +1451,7 @@ def __init__(
legendgroup=None,
legendgrouptitle=None,
legendrank=None,
legendwidth=None,
line=None,
low=None,
lowsrc=None,
Expand Down Expand Up @@ -1535,6 +1561,9 @@ def __init__(
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.
legendwidth
Sets the width (in px or fraction) of the legend for
this trace.
line
:class:`plotly.graph_objects.candlestick.Line` instance
or dict with compatible properties
Expand Down Expand Up @@ -1787,6 +1816,10 @@ def __init__(
_v = legendrank if legendrank is not None else _v
if _v is not None:
self["legendrank"] = _v
_v = arg.pop("legendwidth", None)
_v = legendwidth if legendwidth is not None else _v
if _v is not None:
self["legendwidth"] = _v
_v = arg.pop("line", None)
_v = line if line is not None else _v
if _v is not None:
Expand Down
Loading