Skip to content

Commit

Permalink
update plotly.js to 2.27.0
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamConnors committed Oct 20, 2023
1 parent 57e4d1d commit e13b588
Show file tree
Hide file tree
Showing 14 changed files with 197 additions and 11 deletions.
14 changes: 7 additions & 7 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.26.0"
"plotly.js": "^2.27.0"
},
"jupyterlab": {
"extension": "lib/jupyterlab-plugin",
Expand Down
30 changes: 30 additions & 0 deletions packages/python/plotly/codegen/resources/plot-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -10892,6 +10892,21 @@
"editType": "none",
"valType": "string"
},
"insiderange": {
"description": "Could be used to set the desired inside range of this axis (excluding the labels) when `ticklabelposition` of the anchored axis has *inside*. Not implemented for axes with `type` *log*. This would be ignored when `range` is provided.",
"editType": "plot",
"items": [
{
"editType": "plot",
"valType": "any"
},
{
"editType": "plot",
"valType": "any"
}
],
"valType": "info_array"
},
"labelalias": {
"description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. For negative numbers the minus sign symbol used (U+2212) is wider than the regular ascii dash. That means you need to use −1 instead of -1. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.",
"dflt": false,
Expand Down Expand Up @@ -12217,6 +12232,21 @@
"editType": "none",
"valType": "string"
},
"insiderange": {
"description": "Could be used to set the desired inside range of this axis (excluding the labels) when `ticklabelposition` of the anchored axis has *inside*. Not implemented for axes with `type` *log*. This would be ignored when `range` is provided.",
"editType": "plot",
"items": [
{
"editType": "plot",
"valType": "any"
},
{
"editType": "plot",
"valType": "any"
}
],
"valType": "info_array"
},
"labelalias": {
"description": "Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. For negative numbers the minus sign symbol used (U+2212) is wider than the regular ascii dash. That means you need to use −1 instead of -1. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.",
"dflt": false,
Expand Down
14 changes: 14 additions & 0 deletions packages/python/plotly/plotly/graph_objs/_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -4424,6 +4424,13 @@ def xaxis(self):
example, *2016-10-13 09:15:23.456* with
tickformat "%H~%M~%S.%2f" would display
"09~15~23.46"
insiderange
Could be used to set the desired inside range
of this axis (excluding the labels) when
`ticklabelposition` of the anchored axis has
"inside". Not implemented for axes with `type`
"log". This would be ignored when `range` is
provided.
labelalias
Replacement text for specific tick or hover
labels. For example using {US: 'USA', CA:
Expand Down Expand Up @@ -4986,6 +4993,13 @@ def yaxis(self):
example, *2016-10-13 09:15:23.456* with
tickformat "%H~%M~%S.%2f" would display
"09~15~23.46"
insiderange
Could be used to set the desired inside range
of this axis (excluding the labels) when
`ticklabelposition` of the anchored axis has
"inside". Not implemented for axes with `type`
"log". This would be ignored when `range` is
provided.
labelalias
Replacement text for specific tick or hover
labels. For example using {US: 'USA', CA:
Expand Down
44 changes: 44 additions & 0 deletions packages/python/plotly/plotly/graph_objs/layout/_xaxis.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class XAxis(_BaseLayoutHierarchyType):
"griddash",
"gridwidth",
"hoverformat",
"insiderange",
"labelalias",
"layer",
"linecolor",
Expand Down Expand Up @@ -793,6 +794,32 @@ def hoverformat(self):
def hoverformat(self, val):
self["hoverformat"] = val

# insiderange
# -----------
@property
def insiderange(self):
"""
Could be used to set the desired inside range of this axis
(excluding the labels) when `ticklabelposition` of the anchored
axis has "inside". Not implemented for axes with `type` "log".
This would be ignored when `range` is provided.
The 'insiderange' property is an info array that may be specified as:
* a list or tuple of 2 elements where:
(0) The 'insiderange[0]' property accepts values of any type
(1) The 'insiderange[1]' property accepts values of any type
Returns
-------
list
"""
return self["insiderange"]

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

# labelalias
# ----------
@property
Expand Down Expand Up @@ -2974,6 +3001,12 @@ def _prop_descriptions(self):
seconds with n digits. For example, *2016-10-13
09:15:23.456* with tickformat "%H~%M~%S.%2f" would
display "09~15~23.46"
insiderange
Could be used to set the desired inside range of this
axis (excluding the labels) when `ticklabelposition` of
the anchored axis has "inside". Not implemented for
axes with `type` "log". This would be ignored when
`range` is provided.
labelalias
Replacement text for specific tick or hover labels. For
example using {US: 'USA', CA: 'Canada'} changes US to
Expand Down Expand Up @@ -3336,6 +3369,7 @@ def __init__(
griddash=None,
gridwidth=None,
hoverformat=None,
insiderange=None,
labelalias=None,
layer=None,
linecolor=None,
Expand Down Expand Up @@ -3551,6 +3585,12 @@ def __init__(
seconds with n digits. For example, *2016-10-13
09:15:23.456* with tickformat "%H~%M~%S.%2f" would
display "09~15~23.46"
insiderange
Could be used to set the desired inside range of this
axis (excluding the labels) when `ticklabelposition` of
the anchored axis has "inside". Not implemented for
axes with `type` "log". This would be ignored when
`range` is provided.
labelalias
Replacement text for specific tick or hover labels. For
example using {US: 'USA', CA: 'Canada'} changes US to
Expand Down Expand Up @@ -4006,6 +4046,10 @@ def __init__(
_v = hoverformat if hoverformat is not None else _v
if _v is not None:
self["hoverformat"] = _v
_v = arg.pop("insiderange", None)
_v = insiderange if insiderange is not None else _v
if _v is not None:
self["insiderange"] = _v
_v = arg.pop("labelalias", None)
_v = labelalias if labelalias is not None else _v
if _v is not None:
Expand Down
44 changes: 44 additions & 0 deletions packages/python/plotly/plotly/graph_objs/layout/_yaxis.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class YAxis(_BaseLayoutHierarchyType):
"griddash",
"gridwidth",
"hoverformat",
"insiderange",
"labelalias",
"layer",
"linecolor",
Expand Down Expand Up @@ -817,6 +818,32 @@ def hoverformat(self):
def hoverformat(self, val):
self["hoverformat"] = val

# insiderange
# -----------
@property
def insiderange(self):
"""
Could be used to set the desired inside range of this axis
(excluding the labels) when `ticklabelposition` of the anchored
axis has "inside". Not implemented for axes with `type` "log".
This would be ignored when `range` is provided.
The 'insiderange' property is an info array that may be specified as:
* a list or tuple of 2 elements where:
(0) The 'insiderange[0]' property accepts values of any type
(1) The 'insiderange[1]' property accepts values of any type
Returns
-------
list
"""
return self["insiderange"]

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

# labelalias
# ----------
@property
Expand Down Expand Up @@ -2904,6 +2931,12 @@ def _prop_descriptions(self):
seconds with n digits. For example, *2016-10-13
09:15:23.456* with tickformat "%H~%M~%S.%2f" would
display "09~15~23.46"
insiderange
Could be used to set the desired inside range of this
axis (excluding the labels) when `ticklabelposition` of
the anchored axis has "inside". Not implemented for
axes with `type` "log". This would be ignored when
`range` is provided.
labelalias
Replacement text for specific tick or hover labels. For
example using {US: 'USA', CA: 'Canada'} changes US to
Expand Down Expand Up @@ -3270,6 +3303,7 @@ def __init__(
griddash=None,
gridwidth=None,
hoverformat=None,
insiderange=None,
labelalias=None,
layer=None,
linecolor=None,
Expand Down Expand Up @@ -3491,6 +3525,12 @@ def __init__(
seconds with n digits. For example, *2016-10-13
09:15:23.456* with tickformat "%H~%M~%S.%2f" would
display "09~15~23.46"
insiderange
Could be used to set the desired inside range of this
axis (excluding the labels) when `ticklabelposition` of
the anchored axis has "inside". Not implemented for
axes with `type` "log". This would be ignored when
`range` is provided.
labelalias
Replacement text for specific tick or hover labels. For
example using {US: 'USA', CA: 'Canada'} changes US to
Expand Down Expand Up @@ -3953,6 +3993,10 @@ def __init__(
_v = hoverformat if hoverformat is not None else _v
if _v is not None:
self["hoverformat"] = _v
_v = arg.pop("insiderange", None)
_v = insiderange if insiderange is not None else _v
if _v is not None:
self["insiderange"] = _v
_v = arg.pop("labelalias", None)
_v = labelalias if labelalias is not None else _v
if _v is not None:
Expand Down
2 changes: 1 addition & 1 deletion packages/python/plotly/plotly/offline/_plotlyjs_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# DO NOT EDIT
# This file is generated by the updatebundle setup.py command
__plotlyjs_version__ = "2.26.0"
__plotlyjs_version__ = "2.27.0"
4 changes: 2 additions & 2 deletions packages/python/plotly/plotly/package_data/plotly.min.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions packages/python/plotly/plotly/validators/layout/_xaxis.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,13 @@ def __init__(self, plotly_name="xaxis", parent_name="layout", **kwargs):
example, *2016-10-13 09:15:23.456* with
tickformat "%H~%M~%S.%2f" would display
"09~15~23.46"
insiderange
Could be used to set the desired inside range
of this axis (excluding the labels) when
`ticklabelposition` of the anchored axis has
"inside". Not implemented for axes with `type`
"log". This would be ignored when `range` is
provided.
labelalias
Replacement text for specific tick or hover
labels. For example using {US: 'USA', CA:
Expand Down
7 changes: 7 additions & 0 deletions packages/python/plotly/plotly/validators/layout/_yaxis.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,13 @@ def __init__(self, plotly_name="yaxis", parent_name="layout", **kwargs):
example, *2016-10-13 09:15:23.456* with
tickformat "%H~%M~%S.%2f" would display
"09~15~23.46"
insiderange
Could be used to set the desired inside range
of this axis (excluding the labels) when
`ticklabelposition` of the anchored axis has
"inside". Not implemented for axes with `type`
"log". This would be ignored when `range` is
provided.
labelalias
Replacement text for specific tick or hover
labels. For example using {US: 'USA', CA:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
from ._linecolor import LinecolorValidator
from ._layer import LayerValidator
from ._labelalias import LabelaliasValidator
from ._insiderange import InsiderangeValidator
from ._hoverformat import HoverformatValidator
from ._gridwidth import GridwidthValidator
from ._griddash import GriddashValidator
Expand Down Expand Up @@ -161,6 +162,7 @@
"._linecolor.LinecolorValidator",
"._layer.LayerValidator",
"._labelalias.LabelaliasValidator",
"._insiderange.InsiderangeValidator",
"._hoverformat.HoverformatValidator",
"._gridwidth.GridwidthValidator",
"._griddash.GriddashValidator",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import _plotly_utils.basevalidators


class InsiderangeValidator(_plotly_utils.basevalidators.InfoArrayValidator):
def __init__(self, plotly_name="insiderange", parent_name="layout.xaxis", **kwargs):
super(InsiderangeValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
items=kwargs.pop(
"items",
[
{"editType": "plot", "valType": "any"},
{"editType": "plot", "valType": "any"},
],
),
**kwargs,
)
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
from ._linecolor import LinecolorValidator
from ._layer import LayerValidator
from ._labelalias import LabelaliasValidator
from ._insiderange import InsiderangeValidator
from ._hoverformat import HoverformatValidator
from ._gridwidth import GridwidthValidator
from ._griddash import GriddashValidator
Expand Down Expand Up @@ -160,6 +161,7 @@
"._linecolor.LinecolorValidator",
"._layer.LayerValidator",
"._labelalias.LabelaliasValidator",
"._insiderange.InsiderangeValidator",
"._hoverformat.HoverformatValidator",
"._gridwidth.GridwidthValidator",
"._griddash.GriddashValidator",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import _plotly_utils.basevalidators


class InsiderangeValidator(_plotly_utils.basevalidators.InfoArrayValidator):
def __init__(self, plotly_name="insiderange", parent_name="layout.yaxis", **kwargs):
super(InsiderangeValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_type=kwargs.pop("edit_type", "plot"),
items=kwargs.pop(
"items",
[
{"editType": "plot", "valType": "any"},
{"editType": "plot", "valType": "any"},
],
),
**kwargs,
)

0 comments on commit e13b588

Please sign in to comment.