Skip to content

Commit b9e178d

Browse files
committed
update plotly.js to 2.34.0
1 parent ec108e0 commit b9e178d

File tree

857 files changed

+4785
-2368
lines changed

Some content is hidden

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

857 files changed

+4785
-2368
lines changed

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,21 @@ This project adheres to [Semantic Versioning](http://semver.org/).
55
## [5.23.0] - TBD
66

77
### Updated
8+
- Updated Plotly.js from version 2.32.0 to version 2.34.0. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#2340----2024-07-18) for more information. These changes are reflected in the auto-generated `plotly.graph_objects` module. Notable changes include:
9+
- Add `subtitle` attribute to `layout.title` to enable adding subtitles to plots [[#7012](https://github.com/plotly/plotly.js/pull/7012)]
10+
- Introduce "u" and "s" pseudo html tags to add partial underline and strike-through styles to SVG text elements [[#7043](https://github.com/plotly/plotly.js/pull/7043)]
11+
- Add geometric mean functionality and 'geometric mean ascending' + 'geometric mean descending' to `category_order` on cartesian axes [[#6223](https://github.com/plotly/plotly.js/pull/6223)],
12+
with thanks to @acxz and @prabhathc for the contribution!
13+
- Add axis property `ticklabelindex` for drawing the label for each minor tick n positions away from a major tick,
14+
with thanks to @my-tien for the contribution! [[#7036](https://github.com/plotly/plotly.js/pull/7036)]
15+
- Add property `ticklabelstandoff` and `ticklabelshift` to cartesian axes to adjust positioning of tick labels,
16+
with thanks to @my-tien for the contribution! [[#7006](https://github.com/plotly/plotly.js/pull/7006)]
17+
- Add `x0shift`, `x1shift`, `y0shift`, `y1shift` to shapes to add control over positioning of shape vertices on (multi-)category axes,
18+
with thanks to @my-tien for the contribution! [[#7005](https://github.com/plotly/plotly.js/pull/7005)]
819
- Specify Python version 3.8-3.11 for development virtual environments and pin `pytest` at version 8.1.1 to match.
920
- Update `IntegerValidator` to handle `extras` option to allow supporting additional keyword values. For example, 'bold' and 'normal' as well as integers as used in font weights [#4612].
1021

22+
1123
## [5.22.0] - 2024-05-01
1224

1325
### Updated

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

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

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

+521-331
Large diffs are not rendered by default.

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ def insidetextfont(self):
756756
generates images on a server, where only a
757757
select number of fonts are installed and
758758
supported. These include "Arial", "Balto",
759-
"Courier New", "Droid Sans",, "Droid Serif",
759+
"Courier New", "Droid Sans", "Droid Serif",
760760
"Droid Sans Mono", "Gravitas One", "Old
761761
Standard TT", "Open Sans", "Overpass", "PT Sans
762762
Narrow", "Raleway", "Times New Roman".
@@ -1281,7 +1281,7 @@ def outsidetextfont(self):
12811281
generates images on a server, where only a
12821282
select number of fonts are installed and
12831283
supported. These include "Arial", "Balto",
1284-
"Courier New", "Droid Sans",, "Droid Serif",
1284+
"Courier New", "Droid Sans", "Droid Serif",
12851285
"Droid Sans Mono", "Gravitas One", "Old
12861286
Standard TT", "Open Sans", "Overpass", "PT Sans
12871287
Narrow", "Raleway", "Times New Roman".
@@ -1538,7 +1538,7 @@ def textfont(self):
15381538
generates images on a server, where only a
15391539
select number of fonts are installed and
15401540
supported. These include "Arial", "Balto",
1541-
"Courier New", "Droid Sans",, "Droid Serif",
1541+
"Courier New", "Droid Sans", "Droid Serif",
15421542
"Droid Sans Mono", "Gravitas One", "Old
15431543
Standard TT", "Open Sans", "Overpass", "PT Sans
15441544
Narrow", "Raleway", "Times New Roman".

packages/python/plotly/plotly/graph_objs/_carpet.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ def font(self):
935935
generates images on a server, where only a
936936
select number of fonts are installed and
937937
supported. These include "Arial", "Balto",
938-
"Courier New", "Droid Sans",, "Droid Serif",
938+
"Courier New", "Droid Sans", "Droid Serif",
939939
"Droid Sans Mono", "Gravitas One", "Old
940940
Standard TT", "Open Sans", "Overpass", "PT Sans
941941
Narrow", "Raleway", "Times New Roman".

packages/python/plotly/plotly/graph_objs/_contour.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1473,7 +1473,7 @@ def textfont(self):
14731473
generates images on a server, where only a
14741474
select number of fonts are installed and
14751475
supported. These include "Arial", "Balto",
1476-
"Courier New", "Droid Sans",, "Droid Serif",
1476+
"Courier New", "Droid Sans", "Droid Serif",
14771477
"Droid Sans Mono", "Gravitas One", "Old
14781478
Standard TT", "Open Sans", "Overpass", "PT Sans
14791479
Narrow", "Raleway", "Times New Roman".

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

+30-2
Original file line numberDiff line numberDiff line change
@@ -23106,8 +23106,8 @@ def add_annotation(
2310623106
Sets the text associated with this annotation. Plotly
2310723107
uses a subset of HTML tags to do things like newline
2310823108
(<br>), bold (<b></b>), italics (<i></i>), hyperlinks
23109-
(<a href='...'></a>). Tags <em>, <sup>, <sub> <span>
23110-
are also supported.
23109+
(<a href='...'></a>). Tags <em>, <sup>, <sub>, <s>, <u>
23110+
<span> are also supported.
2311123111
textangle
2311223112
Sets the angle at which the `text` is drawn with
2311323113
respect to the horizontal.
@@ -24097,12 +24097,16 @@ def add_shape(
2409724097
type=None,
2409824098
visible=None,
2409924099
x0=None,
24100+
x0shift=None,
2410024101
x1=None,
24102+
x1shift=None,
2410124103
xanchor=None,
2410224104
xref=None,
2410324105
xsizemode=None,
2410424106
y0=None,
24107+
y0shift=None,
2410524108
y1=None,
24109+
y1shift=None,
2410624110
yanchor=None,
2410724111
yref=None,
2410824112
ysizemode=None,
@@ -24236,9 +24240,19 @@ def add_shape(
2423624240
x0
2423724241
Sets the shape's starting x position. See `type` and
2423824242
`xsizemode` for more info.
24243+
x0shift
24244+
Shifts `x0` away from the center of the category when
24245+
`xref` is a "category" or "multicategory" axis. -0.5
24246+
corresponds to the start of the category and 0.5
24247+
corresponds to the end of the category.
2423924248
x1
2424024249
Sets the shape's end x position. See `type` and
2424124250
`xsizemode` for more info.
24251+
x1shift
24252+
Shifts `x1` away from the center of the category when
24253+
`xref` is a "category" or "multicategory" axis. -0.5
24254+
corresponds to the start of the category and 0.5
24255+
corresponds to the end of the category.
2424224256
xanchor
2424324257
Only relevant in conjunction with `xsizemode` set to
2424424258
"pixel". Specifies the anchor point on the x axis to
@@ -24273,9 +24287,19 @@ def add_shape(
2427324287
y0
2427424288
Sets the shape's starting y position. See `type` and
2427524289
`ysizemode` for more info.
24290+
y0shift
24291+
Shifts `y0` away from the center of the category when
24292+
`yref` is a "category" or "multicategory" axis. -0.5
24293+
corresponds to the start of the category and 0.5
24294+
corresponds to the end of the category.
2427624295
y1
2427724296
Sets the shape's end y position. See `type` and
2427824297
`ysizemode` for more info.
24298+
y1shift
24299+
Shifts `y1` away from the center of the category when
24300+
`yref` is a "category" or "multicategory" axis. -0.5
24301+
corresponds to the start of the category and 0.5
24302+
corresponds to the end of the category.
2427924303
yanchor
2428024304
Only relevant in conjunction with `ysizemode` set to
2428124305
"pixel". Specifies the anchor point on the y axis to
@@ -24347,12 +24371,16 @@ def add_shape(
2434724371
type=type,
2434824372
visible=visible,
2434924373
x0=x0,
24374+
x0shift=x0shift,
2435024375
x1=x1,
24376+
x1shift=x1shift,
2435124377
xanchor=xanchor,
2435224378
xref=xref,
2435324379
xsizemode=xsizemode,
2435424380
y0=y0,
24381+
y0shift=y0shift,
2435524382
y1=y1,
24383+
y1shift=y1shift,
2435624384
yanchor=yanchor,
2435724385
yref=yref,
2435824386
ysizemode=ysizemode,

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

+30-2
Original file line numberDiff line numberDiff line change
@@ -23112,8 +23112,8 @@ def add_annotation(
2311223112
Sets the text associated with this annotation. Plotly
2311323113
uses a subset of HTML tags to do things like newline
2311423114
(<br>), bold (<b></b>), italics (<i></i>), hyperlinks
23115-
(<a href='...'></a>). Tags <em>, <sup>, <sub> <span>
23116-
are also supported.
23115+
(<a href='...'></a>). Tags <em>, <sup>, <sub>, <s>, <u>
23116+
<span> are also supported.
2311723117
textangle
2311823118
Sets the angle at which the `text` is drawn with
2311923119
respect to the horizontal.
@@ -24103,12 +24103,16 @@ def add_shape(
2410324103
type=None,
2410424104
visible=None,
2410524105
x0=None,
24106+
x0shift=None,
2410624107
x1=None,
24108+
x1shift=None,
2410724109
xanchor=None,
2410824110
xref=None,
2410924111
xsizemode=None,
2411024112
y0=None,
24113+
y0shift=None,
2411124114
y1=None,
24115+
y1shift=None,
2411224116
yanchor=None,
2411324117
yref=None,
2411424118
ysizemode=None,
@@ -24242,9 +24246,19 @@ def add_shape(
2424224246
x0
2424324247
Sets the shape's starting x position. See `type` and
2424424248
`xsizemode` for more info.
24249+
x0shift
24250+
Shifts `x0` away from the center of the category when
24251+
`xref` is a "category" or "multicategory" axis. -0.5
24252+
corresponds to the start of the category and 0.5
24253+
corresponds to the end of the category.
2424524254
x1
2424624255
Sets the shape's end x position. See `type` and
2424724256
`xsizemode` for more info.
24257+
x1shift
24258+
Shifts `x1` away from the center of the category when
24259+
`xref` is a "category" or "multicategory" axis. -0.5
24260+
corresponds to the start of the category and 0.5
24261+
corresponds to the end of the category.
2424824262
xanchor
2424924263
Only relevant in conjunction with `xsizemode` set to
2425024264
"pixel". Specifies the anchor point on the x axis to
@@ -24279,9 +24293,19 @@ def add_shape(
2427924293
y0
2428024294
Sets the shape's starting y position. See `type` and
2428124295
`ysizemode` for more info.
24296+
y0shift
24297+
Shifts `y0` away from the center of the category when
24298+
`yref` is a "category" or "multicategory" axis. -0.5
24299+
corresponds to the start of the category and 0.5
24300+
corresponds to the end of the category.
2428224301
y1
2428324302
Sets the shape's end y position. See `type` and
2428424303
`ysizemode` for more info.
24304+
y1shift
24305+
Shifts `y1` away from the center of the category when
24306+
`yref` is a "category" or "multicategory" axis. -0.5
24307+
corresponds to the start of the category and 0.5
24308+
corresponds to the end of the category.
2428524309
yanchor
2428624310
Only relevant in conjunction with `ysizemode` set to
2428724311
"pixel". Specifies the anchor point on the y axis to
@@ -24353,12 +24377,16 @@ def add_shape(
2435324377
type=type,
2435424378
visible=visible,
2435524379
x0=x0,
24380+
x0shift=x0shift,
2435624381
x1=x1,
24382+
x1shift=x1shift,
2435724383
xanchor=xanchor,
2435824384
xref=xref,
2435924385
xsizemode=xsizemode,
2436024386
y0=y0,
24387+
y0shift=y0shift,
2436124388
y1=y1,
24389+
y1shift=y1shift,
2436224390
yanchor=yanchor,
2436324391
yref=yref,
2436424392
ysizemode=ysizemode,

packages/python/plotly/plotly/graph_objs/_funnel.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ def insidetextfont(self):
580580
generates images on a server, where only a
581581
select number of fonts are installed and
582582
supported. These include "Arial", "Balto",
583-
"Courier New", "Droid Sans",, "Droid Serif",
583+
"Courier New", "Droid Sans", "Droid Serif",
584584
"Droid Sans Mono", "Gravitas One", "Old
585585
Standard TT", "Open Sans", "Overpass", "PT Sans
586586
Narrow", "Raleway", "Times New Roman".
@@ -1080,7 +1080,7 @@ def outsidetextfont(self):
10801080
generates images on a server, where only a
10811081
select number of fonts are installed and
10821082
supported. These include "Arial", "Balto",
1083-
"Courier New", "Droid Sans",, "Droid Serif",
1083+
"Courier New", "Droid Sans", "Droid Serif",
10841084
"Droid Sans Mono", "Gravitas One", "Old
10851085
Standard TT", "Open Sans", "Overpass", "PT Sans
10861086
Narrow", "Raleway", "Times New Roman".
@@ -1306,7 +1306,7 @@ def textfont(self):
13061306
generates images on a server, where only a
13071307
select number of fonts are installed and
13081308
supported. These include "Arial", "Balto",
1309-
"Courier New", "Droid Sans",, "Droid Serif",
1309+
"Courier New", "Droid Sans", "Droid Serif",
13101310
"Droid Sans Mono", "Gravitas One", "Old
13111311
Standard TT", "Open Sans", "Overpass", "PT Sans
13121312
Narrow", "Raleway", "Times New Roman".

packages/python/plotly/plotly/graph_objs/_funnelarea.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ def insidetextfont(self):
495495
generates images on a server, where only a
496496
select number of fonts are installed and
497497
supported. These include "Arial", "Balto",
498-
"Courier New", "Droid Sans",, "Droid Serif",
498+
"Courier New", "Droid Sans", "Droid Serif",
499499
"Droid Sans Mono", "Gravitas One", "Old
500500
Standard TT", "Open Sans", "Overpass", "PT Sans
501501
Narrow", "Raleway", "Times New Roman".
@@ -1009,7 +1009,7 @@ def textfont(self):
10091009
generates images on a server, where only a
10101010
select number of fonts are installed and
10111011
supported. These include "Arial", "Balto",
1012-
"Courier New", "Droid Sans",, "Droid Serif",
1012+
"Courier New", "Droid Sans", "Droid Serif",
10131013
"Droid Sans Mono", "Gravitas One", "Old
10141014
Standard TT", "Open Sans", "Overpass", "PT Sans
10151015
Narrow", "Raleway", "Times New Roman".

packages/python/plotly/plotly/graph_objs/_heatmap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ def textfont(self):
12331233
generates images on a server, where only a
12341234
select number of fonts are installed and
12351235
supported. These include "Arial", "Balto",
1236-
"Courier New", "Droid Sans",, "Droid Serif",
1236+
"Courier New", "Droid Sans", "Droid Serif",
12371237
"Droid Sans Mono", "Gravitas One", "Old
12381238
Standard TT", "Open Sans", "Overpass", "PT Sans
12391239
Narrow", "Raleway", "Times New Roman".

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ def insidetextfont(self):
842842
generates images on a server, where only a
843843
select number of fonts are installed and
844844
supported. These include "Arial", "Balto",
845-
"Courier New", "Droid Sans",, "Droid Serif",
845+
"Courier New", "Droid Sans", "Droid Serif",
846846
"Droid Sans Mono", "Gravitas One", "Old
847847
Standard TT", "Open Sans", "Overpass", "PT Sans
848848
Narrow", "Raleway", "Times New Roman".
@@ -1347,7 +1347,7 @@ def outsidetextfont(self):
13471347
generates images on a server, where only a
13481348
select number of fonts are installed and
13491349
supported. These include "Arial", "Balto",
1350-
"Courier New", "Droid Sans",, "Droid Serif",
1350+
"Courier New", "Droid Sans", "Droid Serif",
13511351
"Droid Sans Mono", "Gravitas One", "Old
13521352
Standard TT", "Open Sans", "Overpass", "PT Sans
13531353
Narrow", "Raleway", "Times New Roman".
@@ -1576,7 +1576,7 @@ def textfont(self):
15761576
generates images on a server, where only a
15771577
select number of fonts are installed and
15781578
supported. These include "Arial", "Balto",
1579-
"Courier New", "Droid Sans",, "Droid Serif",
1579+
"Courier New", "Droid Sans", "Droid Serif",
15801580
"Droid Sans Mono", "Gravitas One", "Old
15811581
Standard TT", "Open Sans", "Overpass", "PT Sans
15821582
Narrow", "Raleway", "Times New Roman".

packages/python/plotly/plotly/graph_objs/_histogram2d.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ def textfont(self):
12881288
generates images on a server, where only a
12891289
select number of fonts are installed and
12901290
supported. These include "Arial", "Balto",
1291-
"Courier New", "Droid Sans",, "Droid Serif",
1291+
"Courier New", "Droid Sans", "Droid Serif",
12921292
"Droid Sans Mono", "Gravitas One", "Old
12931293
Standard TT", "Open Sans", "Overpass", "PT Sans
12941294
Narrow", "Raleway", "Times New Roman".

packages/python/plotly/plotly/graph_objs/_histogram2dcontour.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,7 @@ def textfont(self):
14621462
generates images on a server, where only a
14631463
select number of fonts are installed and
14641464
supported. These include "Arial", "Balto",
1465-
"Courier New", "Droid Sans",, "Droid Serif",
1465+
"Courier New", "Droid Sans", "Droid Serif",
14661466
"Droid Sans Mono", "Gravitas One", "Old
14671467
Standard TT", "Open Sans", "Overpass", "PT Sans
14681468
Narrow", "Raleway", "Times New Roman".

0 commit comments

Comments
 (0)