Skip to content

Commit b4fb94a

Browse files
committed
update Plotly.js to 2.29.0
1 parent 92ac8f9 commit b4fb94a

40 files changed

+641
-11
lines changed

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

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/javascript/jupyterlab-plotly/package.json

Lines changed: 1 addition & 1 deletion
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.28.0"
68+
"plotly.js": "^2.29.0"
6969
},
7070
"jupyterlab": {
7171
"extension": "lib/jupyterlab-plugin",

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

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4464,6 +4464,20 @@
44644464
},
44654465
"role": "object"
44664466
},
4467+
"autotickangles": {
4468+
"description": "When `tickangle` is set to *auto*, it will be set to the first angle in this array that is large enough to prevent label overlap.",
4469+
"dflt": [
4470+
0,
4471+
30,
4472+
90
4473+
],
4474+
"editType": "ticks",
4475+
"freeLength": true,
4476+
"items": {
4477+
"valType": "angle"
4478+
},
4479+
"valType": "info_array"
4480+
},
44674481
"autotypenumbers": {
44684482
"description": "Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers.",
44694483
"dflt": "convert types",
@@ -10699,6 +10713,20 @@
1069910713
},
1070010714
"role": "object"
1070110715
},
10716+
"autotickangles": {
10717+
"description": "When `tickangle` is set to *auto*, it will be set to the first angle in this array that is large enough to prevent label overlap.",
10718+
"dflt": [
10719+
0,
10720+
30,
10721+
90
10722+
],
10723+
"editType": "ticks",
10724+
"freeLength": true,
10725+
"items": {
10726+
"valType": "angle"
10727+
},
10728+
"valType": "info_array"
10729+
},
1070210730
"autotypenumbers": {
1070310731
"description": "Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers.",
1070410732
"dflt": "convert types",
@@ -12039,6 +12067,20 @@
1203912067
"editType": "plot",
1204012068
"valType": "boolean"
1204112069
},
12070+
"autotickangles": {
12071+
"description": "When `tickangle` is set to *auto*, it will be set to the first angle in this array that is large enough to prevent label overlap.",
12072+
"dflt": [
12073+
0,
12074+
30,
12075+
90
12076+
],
12077+
"editType": "ticks",
12078+
"freeLength": true,
12079+
"items": {
12080+
"valType": "angle"
12081+
},
12082+
"valType": "info_array"
12083+
},
1204212084
"autotypenumbers": {
1204312085
"description": "Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers.",
1204412086
"dflt": "convert types",
@@ -14113,6 +14155,11 @@
1411314155
"editType": "none",
1411414156
"valType": "string"
1411514157
},
14158+
"cornerradius": {
14159+
"description": "Sets the rounding of corners. May be an integer number of pixels, or a percentage of bar width (as a string ending in %). Defaults to `layout.barcornerradius`. In stack or relative barmode, the first trace to set cornerradius is used for the whole stack.",
14160+
"editType": "calc",
14161+
"valType": "any"
14162+
},
1411614163
"editType": "calc",
1411714164
"line": {
1411814165
"autocolorscale": {
@@ -14800,6 +14847,11 @@
1480014847
"zoomScale"
1480114848
],
1480214849
"layoutAttributes": {
14850+
"barcornerradius": {
14851+
"description": "Sets the rounding of bar corners. May be an integer number of pixels, or a percentage of bar width (as a string ending in %).",
14852+
"editType": "calc",
14853+
"valType": "any"
14854+
},
1480314855
"bargap": {
1480414856
"description": "Sets the gap (in plot fraction) between bars of adjacent location coordinates.",
1480514857
"editType": "calc",
@@ -31469,6 +31521,11 @@
3146931521
"editType": "none",
3147031522
"valType": "string"
3147131523
},
31524+
"cornerradius": {
31525+
"description": "Sets the rounding of corners. May be an integer number of pixels, or a percentage of bar width (as a string ending in %). Defaults to `layout.barcornerradius`. In stack or relative barmode, the first trace to set cornerradius is used for the whole stack.",
31526+
"editType": "calc",
31527+
"valType": "any"
31528+
},
3147231529
"editType": "calc",
3147331530
"line": {
3147431531
"autocolorscale": {
@@ -32074,6 +32131,11 @@
3207432131
"showLegend"
3207532132
],
3207632133
"layoutAttributes": {
32134+
"barcornerradius": {
32135+
"description": "Sets the rounding of bar corners. May be an integer number of pixels, or a percentage of bar width (as a string ending in %).",
32136+
"editType": "calc",
32137+
"valType": "any"
32138+
},
3207732139
"bargap": {
3207832140
"description": "Sets the gap (in plot fraction) between bars of adjacent location coordinates.",
3207932141
"editType": "calc",
@@ -44148,6 +44210,17 @@
4414844210
},
4414944211
"description": "The links of the Sankey plot.",
4415044212
"editType": "calc",
44213+
"hovercolor": {
44214+
"arrayOk": true,
44215+
"description": "Sets the `link` hover color. It can be a single value, or an array for specifying hover colors for each `link`. If `link.hovercolor` is omitted, then by default, links will become slightly more opaque when hovered over.",
44216+
"editType": "calc",
44217+
"valType": "color"
44218+
},
44219+
"hovercolorsrc": {
44220+
"description": "Sets the source reference on Chart Studio Cloud for `hovercolor`.",
44221+
"editType": "none",
44222+
"valType": "string"
44223+
},
4415144224
"hoverinfo": {
4415244225
"description": "Determines which trace information appear when hovering links. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired.",
4415344226
"dflt": "all",

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,13 @@ def marker(self):
990990
colorsrc
991991
Sets the source reference on Chart Studio Cloud
992992
for `color`.
993+
cornerradius
994+
Sets the rounding of corners. May be an integer
995+
number of pixels, or a percentage of bar width
996+
(as a string ending in %). Defaults to
997+
`layout.barcornerradius`. In stack or relative
998+
barmode, the first trace to set cornerradius is
999+
used for the whole stack.
9931000
line
9941001
:class:`plotly.graph_objects.bar.marker.Line`
9951002
instance or dict with compatible properties

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ def __init__(
8080
`type` detection. This is the default value;
8181
however it could be overridden for individual
8282
axes.
83+
barcornerradius
84+
Sets the rounding of bar corners. May be an
85+
integer number of pixels, or a percentage of
86+
bar width (as a string ending in %).
8387
bargap
8488
Sets the gap (in plot fraction) between bars of
8589
adjacent location coordinates.

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ def __init__(
8080
`type` detection. This is the default value;
8181
however it could be overridden for individual
8282
axes.
83+
barcornerradius
84+
Sets the rounding of bar corners. May be an
85+
integer number of pixels, or a percentage of
86+
bar width (as a string ending in %).
8387
bargap
8488
Sets the gap (in plot fraction) between bars of
8589
adjacent location coordinates.

packages/python/plotly/plotly/graph_objs/_histogram.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,6 +1070,13 @@ def marker(self):
10701070
colorsrc
10711071
Sets the source reference on Chart Studio Cloud
10721072
for `color`.
1073+
cornerradius
1074+
Sets the rounding of corners. May be an integer
1075+
number of pixels, or a percentage of bar width
1076+
(as a string ending in %). Defaults to
1077+
`layout.barcornerradius`. In stack or relative
1078+
barmode, the first trace to set cornerradius is
1079+
used for the whole stack.
10731080
line
10741081
:class:`plotly.graph_objects.histogram.marker.L
10751082
ine` instance or dict with compatible

packages/python/plotly/plotly/graph_objs/_layout.py

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def _subplot_re_match(self, prop):
7070
"annotations",
7171
"autosize",
7272
"autotypenumbers",
73+
"barcornerradius",
7374
"bargap",
7475
"bargroupgap",
7576
"barmode",
@@ -634,6 +635,26 @@ def autotypenumbers(self):
634635
def autotypenumbers(self, val):
635636
self["autotypenumbers"] = val
636637

638+
# barcornerradius
639+
# ---------------
640+
@property
641+
def barcornerradius(self):
642+
"""
643+
Sets the rounding of bar corners. May be an integer number of
644+
pixels, or a percentage of bar width (as a string ending in %).
645+
646+
The 'barcornerradius' property accepts values of any type
647+
648+
Returns
649+
-------
650+
Any
651+
"""
652+
return self["barcornerradius"]
653+
654+
@barcornerradius.setter
655+
def barcornerradius(self, val):
656+
self["barcornerradius"] = val
657+
637658
# bargap
638659
# ------
639660
@property
@@ -4292,6 +4313,10 @@ def xaxis(self):
42924313
:class:`plotly.graph_objects.layout.xaxis.Autor
42934314
angeoptions` instance or dict with compatible
42944315
properties
4316+
autotickangles
4317+
When `tickangle` is set to "auto", it will be
4318+
set to the first angle in this array that is
4319+
large enough to prevent label overlap.
42954320
autotypenumbers
42964321
Using "strict" a numeric string in trace data
42974322
is not converted to a number. Using *convert
@@ -4861,6 +4886,10 @@ def yaxis(self):
48614886
axes on the same side with `autoshift` is set
48624887
to true. Only has an effect if `anchor` is set
48634888
to "free".
4889+
autotickangles
4890+
When `tickangle` is set to "auto", it will be
4891+
set to the first angle in this array that is
4892+
large enough to prevent label overlap.
48644893
autotypenumbers
48654894
Using "strict" a numeric string in trace data
48664895
is not converted to a number. Using *convert
@@ -5418,6 +5447,10 @@ def _prop_descriptions(self):
54185447
automatic axis `type` detection. This is the default
54195448
value; however it could be overridden for individual
54205449
axes.
5450+
barcornerradius
5451+
Sets the rounding of bar corners. May be an integer
5452+
number of pixels, or a percentage of bar width (as a
5453+
string ending in %).
54215454
bargap
54225455
Sets the gap (in plot fraction) between bars of
54235456
adjacent location coordinates.
@@ -5882,6 +5915,7 @@ def __init__(
58825915
annotationdefaults=None,
58835916
autosize=None,
58845917
autotypenumbers=None,
5918+
barcornerradius=None,
58855919
bargap=None,
58865920
bargroupgap=None,
58875921
barmode=None,
@@ -6007,6 +6041,10 @@ def __init__(
60076041
automatic axis `type` detection. This is the default
60086042
value; however it could be overridden for individual
60096043
axes.
6044+
barcornerradius
6045+
Sets the rounding of bar corners. May be an integer
6046+
number of pixels, or a percentage of bar width (as a
6047+
string ending in %).
60106048
bargap
60116049
Sets the gap (in plot fraction) between bars of
60126050
adjacent location coordinates.
@@ -6478,6 +6516,7 @@ def __init__(
64786516
"annotations",
64796517
"autosize",
64806518
"autotypenumbers",
6519+
"barcornerradius",
64816520
"bargap",
64826521
"bargroupgap",
64836522
"barmode",
@@ -6614,6 +6653,10 @@ def __init__(
66146653
_v = autotypenumbers if autotypenumbers is not None else _v
66156654
if _v is not None:
66166655
self["autotypenumbers"] = _v
6656+
_v = arg.pop("barcornerradius", None)
6657+
_v = barcornerradius if barcornerradius is not None else _v
6658+
if _v is not None:
6659+
self["barcornerradius"] = _v
66176660
_v = arg.pop("bargap", None)
66186661
_v = bargap if bargap is not None else _v
66196662
if _v is not None:

packages/python/plotly/plotly/graph_objs/_sankey.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,15 @@ def link(self):
415415
customdatasrc
416416
Sets the source reference on Chart Studio Cloud
417417
for `customdata`.
418+
hovercolor
419+
Sets the `link` hover color. It can be a single
420+
value, or an array for specifying hover colors
421+
for each `link`. If `link.hovercolor` is
422+
omitted, then by default, links will become
423+
slightly more opaque when hovered over.
424+
hovercolorsrc
425+
Sets the source reference on Chart Studio Cloud
426+
for `hovercolor`.
418427
hoverinfo
419428
Determines which trace information appear when
420429
hovering links. If `none` or `skip` are set, no

0 commit comments

Comments
 (0)