Skip to content

Commit 0589b22

Browse files
committed
upgrade plotly.js to 3.1.0
1 parent 694b036 commit 0589b22

File tree

125 files changed

+4747
-873
lines changed

Some content is hidden

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

125 files changed

+4747
-873
lines changed

codegen/resources/plot-schema.json

Lines changed: 601 additions & 102 deletions
Large diffs are not rendered by default.

js/package-lock.json

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

js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"dependencies": {
2121
"lodash-es": "^4.17.21",
22-
"plotly.js": "3.0.3",
22+
"plotly.js": "3.1.0",
2323
"@lumino/widgets": "~2.4.0"
2424
},
2525
"devDependencies": {

plotly/graph_objs/_bar.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,8 @@ def hovertemplate(self):
386386
(the ones that are `arrayOk: true`) are available. Finally, the
387387
template string has access to variables `value` and `label`.
388388
Anything contained in tag `<extra>` is displayed in the
389-
secondary box, for example "<extra>{fullData.name}</extra>". To
390-
hide the secondary box completely, use an empty tag
389+
secondary box, for example `<extra>%{fullData.name}</extra>`.
390+
To hide the secondary box completely, use an empty tag
391391
`<extra></extra>`.
392392
393393
The 'hovertemplate' property is a string and must be specified as:
@@ -1731,7 +1731,7 @@ def _prop_descriptions(self):
17311731
are available. Finally, the template string has access
17321732
to variables `value` and `label`. Anything contained in
17331733
tag `<extra>` is displayed in the secondary box, for
1734-
example "<extra>{fullData.name}</extra>". To hide the
1734+
example `<extra>%{fullData.name}</extra>`. To hide the
17351735
secondary box completely, use an empty tag
17361736
`<extra></extra>`.
17371737
hovertemplatesrc
@@ -2197,7 +2197,7 @@ def __init__(
21972197
are available. Finally, the template string has access
21982198
to variables `value` and `label`. Anything contained in
21992199
tag `<extra>` is displayed in the secondary box, for
2200-
example "<extra>{fullData.name}</extra>". To hide the
2200+
example `<extra>%{fullData.name}</extra>`. To hide the
22012201
secondary box completely, use an empty tag
22022202
`<extra></extra>`.
22032203
hovertemplatesrc

plotly/graph_objs/_barpolar.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def hovertemplate(self):
260260
Additionally, every attributes that can be specified per-point
261261
(the ones that are `arrayOk: true`) are available. Anything
262262
contained in tag `<extra>` is displayed in the secondary box,
263-
for example "<extra>{fullData.name}</extra>". To hide the
263+
for example `<extra>%{fullData.name}</extra>`. To hide the
264264
secondary box completely, use an empty tag `<extra></extra>`.
265265
266266
The 'hovertemplate' property is a string and must be specified as:
@@ -1086,8 +1086,9 @@ def _prop_descriptions(self):
10861086
specified per-point (the ones that are `arrayOk: true`)
10871087
are available. Anything contained in tag `<extra>` is
10881088
displayed in the secondary box, for example
1089-
"<extra>{fullData.name}</extra>". To hide the secondary
1090-
box completely, use an empty tag `<extra></extra>`.
1089+
`<extra>%{fullData.name}</extra>`. To hide the
1090+
secondary box completely, use an empty tag
1091+
`<extra></extra>`.
10911092
hovertemplatesrc
10921093
Sets the source reference on Chart Studio Cloud for
10931094
`hovertemplate`.
@@ -1368,8 +1369,9 @@ def __init__(
13681369
specified per-point (the ones that are `arrayOk: true`)
13691370
are available. Anything contained in tag `<extra>` is
13701371
displayed in the secondary box, for example
1371-
"<extra>{fullData.name}</extra>". To hide the secondary
1372-
box completely, use an empty tag `<extra></extra>`.
1372+
`<extra>%{fullData.name}</extra>`. To hide the
1373+
secondary box completely, use an empty tag
1374+
`<extra></extra>`.
13731375
hovertemplatesrc
13741376
Sets the source reference on Chart Studio Cloud for
13751377
`hovertemplate`.

plotly/graph_objs/_box.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def hovertemplate(self):
377377
Additionally, every attributes that can be specified per-point
378378
(the ones that are `arrayOk: true`) are available. Anything
379379
contained in tag `<extra>` is displayed in the secondary box,
380-
for example "<extra>{fullData.name}</extra>". To hide the
380+
for example `<extra>%{fullData.name}</extra>`. To hide the
381381
secondary box completely, use an empty tag `<extra></extra>`.
382382
383383
The 'hovertemplate' property is a string and must be specified as:
@@ -1996,8 +1996,9 @@ def _prop_descriptions(self):
19961996
specified per-point (the ones that are `arrayOk: true`)
19971997
are available. Anything contained in tag `<extra>` is
19981998
displayed in the secondary box, for example
1999-
"<extra>{fullData.name}</extra>". To hide the secondary
2000-
box completely, use an empty tag `<extra></extra>`.
1999+
`<extra>%{fullData.name}</extra>`. To hide the
2000+
secondary box completely, use an empty tag
2001+
`<extra></extra>`.
20012002
hovertemplatesrc
20022003
Sets the source reference on Chart Studio Cloud for
20032004
`hovertemplate`.
@@ -2567,8 +2568,9 @@ def __init__(
25672568
specified per-point (the ones that are `arrayOk: true`)
25682569
are available. Anything contained in tag `<extra>` is
25692570
displayed in the secondary box, for example
2570-
"<extra>{fullData.name}</extra>". To hide the secondary
2571-
box completely, use an empty tag `<extra></extra>`.
2571+
`<extra>%{fullData.name}</extra>`. To hide the
2572+
secondary box completely, use an empty tag
2573+
`<extra></extra>`.
25722574
hovertemplatesrc
25732575
Sets the source reference on Chart Studio Cloud for
25742576
`hovertemplate`.

plotly/graph_objs/_choropleth.py

Lines changed: 33 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def hovertemplate(self):
370370
Additionally, every attributes that can be specified per-point
371371
(the ones that are `arrayOk: true`) are available. Anything
372372
contained in tag `<extra>` is displayed in the secondary box,
373-
for example "<extra>{fullData.name}</extra>". To hide the
373+
for example `<extra>%{fullData.name}</extra>`. To hide the
374374
secondary box completely, use an empty tag `<extra></extra>`.
375375
376376
The 'hovertemplate' property is a string and must be specified as:
@@ -594,11 +594,14 @@ def legendwidth(self, val):
594594
@property
595595
def locationmode(self):
596596
"""
597-
Determines the set of locations used to match entries in
598-
`locations` to regions on the map. Values "ISO-3", "USA-
599-
states", *country names* correspond to features on the base map
600-
and value "geojson-id" corresponds to features from a custom
601-
GeoJSON linked to the `geojson` attribute.
597+
The library used by the *country names* `locationmode` option
598+
is changing in an upcoming version. Country names in existing
599+
plots may not work in the new version. Determines the set of
600+
locations used to match entries in `locations` to regions on
601+
the map. Values "ISO-3", "USA-states", *country names*
602+
correspond to features on the base map and value "geojson-id"
603+
corresponds to features from a custom GeoJSON linked to the
604+
`geojson` attribute.
602605
603606
The 'locationmode' property is an enumeration that may be specified as:
604607
- One of the following enumeration values:
@@ -1196,8 +1199,9 @@ def _prop_descriptions(self):
11961199
specified per-point (the ones that are `arrayOk: true`)
11971200
are available. Anything contained in tag `<extra>` is
11981201
displayed in the secondary box, for example
1199-
"<extra>{fullData.name}</extra>". To hide the secondary
1200-
box completely, use an empty tag `<extra></extra>`.
1202+
`<extra>%{fullData.name}</extra>`. To hide the
1203+
secondary box completely, use an empty tag
1204+
`<extra></extra>`.
12011205
hovertemplatesrc
12021206
Sets the source reference on Chart Studio Cloud for
12031207
`hovertemplate`.
@@ -1241,12 +1245,15 @@ def _prop_descriptions(self):
12411245
Sets the width (in px or fraction) of the legend for
12421246
this trace.
12431247
locationmode
1244-
Determines the set of locations used to match entries
1245-
in `locations` to regions on the map. Values "ISO-3",
1246-
"USA-states", *country names* correspond to features on
1247-
the base map and value "geojson-id" corresponds to
1248-
features from a custom GeoJSON linked to the `geojson`
1249-
attribute.
1248+
The library used by the *country names* `locationmode`
1249+
option is changing in an upcoming version. Country
1250+
names in existing plots may not work in the new
1251+
version. Determines the set of locations used to match
1252+
entries in `locations` to regions on the map. Values
1253+
"ISO-3", "USA-states", *country names* correspond to
1254+
features on the base map and value "geojson-id"
1255+
corresponds to features from a custom GeoJSON linked to
1256+
the `geojson` attribute.
12501257
locations
12511258
Sets the coordinates via location IDs or names. See
12521259
`locationmode` for more info.
@@ -1515,8 +1522,9 @@ def __init__(
15151522
specified per-point (the ones that are `arrayOk: true`)
15161523
are available. Anything contained in tag `<extra>` is
15171524
displayed in the secondary box, for example
1518-
"<extra>{fullData.name}</extra>". To hide the secondary
1519-
box completely, use an empty tag `<extra></extra>`.
1525+
`<extra>%{fullData.name}</extra>`. To hide the
1526+
secondary box completely, use an empty tag
1527+
`<extra></extra>`.
15201528
hovertemplatesrc
15211529
Sets the source reference on Chart Studio Cloud for
15221530
`hovertemplate`.
@@ -1560,12 +1568,15 @@ def __init__(
15601568
Sets the width (in px or fraction) of the legend for
15611569
this trace.
15621570
locationmode
1563-
Determines the set of locations used to match entries
1564-
in `locations` to regions on the map. Values "ISO-3",
1565-
"USA-states", *country names* correspond to features on
1566-
the base map and value "geojson-id" corresponds to
1567-
features from a custom GeoJSON linked to the `geojson`
1568-
attribute.
1571+
The library used by the *country names* `locationmode`
1572+
option is changing in an upcoming version. Country
1573+
names in existing plots may not work in the new
1574+
version. Determines the set of locations used to match
1575+
entries in `locations` to regions on the map. Values
1576+
"ISO-3", "USA-states", *country names* correspond to
1577+
features on the base map and value "geojson-id"
1578+
corresponds to features from a custom GeoJSON linked to
1579+
the `geojson` attribute.
15691580
locations
15701581
Sets the coordinates via location IDs or names. See
15711582
`locationmode` for more info.

plotly/graph_objs/_choroplethmap.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ def hovertemplate(self):
368368
(the ones that are `arrayOk: true`) are available. Finally, the
369369
template string has access to variable `properties` Anything
370370
contained in tag `<extra>` is displayed in the secondary box,
371-
for example "<extra>{fullData.name}</extra>". To hide the
371+
for example `<extra>%{fullData.name}</extra>`. To hide the
372372
secondary box completely, use an empty tag `<extra></extra>`.
373373
374374
The 'hovertemplate' property is a string and must be specified as:
@@ -1193,7 +1193,7 @@ def _prop_descriptions(self):
11931193
are available. Finally, the template string has access
11941194
to variable `properties` Anything contained in tag
11951195
`<extra>` is displayed in the secondary box, for
1196-
example "<extra>{fullData.name}</extra>". To hide the
1196+
example `<extra>%{fullData.name}</extra>`. To hide the
11971197
secondary box completely, use an empty tag
11981198
`<extra></extra>`.
11991199
hovertemplatesrc
@@ -1510,7 +1510,7 @@ def __init__(
15101510
are available. Finally, the template string has access
15111511
to variable `properties` Anything contained in tag
15121512
`<extra>` is displayed in the secondary box, for
1513-
example "<extra>{fullData.name}</extra>". To hide the
1513+
example `<extra>%{fullData.name}</extra>`. To hide the
15141514
secondary box completely, use an empty tag
15151515
`<extra></extra>`.
15161516
hovertemplatesrc

plotly/graph_objs/_choroplethmapbox.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ def hovertemplate(self):
369369
(the ones that are `arrayOk: true`) are available. Finally, the
370370
template string has access to variable `properties` Anything
371371
contained in tag `<extra>` is displayed in the secondary box,
372-
for example "<extra>{fullData.name}</extra>". To hide the
372+
for example `<extra>%{fullData.name}</extra>`. To hide the
373373
secondary box completely, use an empty tag `<extra></extra>`.
374374
375375
The 'hovertemplate' property is a string and must be specified as:
@@ -1198,7 +1198,7 @@ def _prop_descriptions(self):
11981198
are available. Finally, the template string has access
11991199
to variable `properties` Anything contained in tag
12001200
`<extra>` is displayed in the secondary box, for
1201-
example "<extra>{fullData.name}</extra>". To hide the
1201+
example `<extra>%{fullData.name}</extra>`. To hide the
12021202
secondary box completely, use an empty tag
12031203
`<extra></extra>`.
12041204
hovertemplatesrc
@@ -1525,7 +1525,7 @@ def __init__(
15251525
are available. Finally, the template string has access
15261526
to variable `properties` Anything contained in tag
15271527
`<extra>` is displayed in the secondary box, for
1528-
example "<extra>{fullData.name}</extra>". To hide the
1528+
example `<extra>%{fullData.name}</extra>`. To hide the
15291529
secondary box completely, use an empty tag
15301530
`<extra></extra>`.
15311531
hovertemplatesrc

plotly/graph_objs/_cone.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def hovertemplate(self):
421421
(the ones that are `arrayOk: true`) are available. Finally, the
422422
template string has access to variable `norm` Anything
423423
contained in tag `<extra>` is displayed in the secondary box,
424-
for example "<extra>{fullData.name}</extra>". To hide the
424+
for example `<extra>%{fullData.name}</extra>`. To hide the
425425
secondary box completely, use an empty tag `<extra></extra>`.
426426
427427
The 'hovertemplate' property is a string and must be specified as:
@@ -1509,8 +1509,9 @@ def _prop_descriptions(self):
15091509
are available. Finally, the template string has access
15101510
to variable `norm` Anything contained in tag `<extra>`
15111511
is displayed in the secondary box, for example
1512-
"<extra>{fullData.name}</extra>". To hide the secondary
1513-
box completely, use an empty tag `<extra></extra>`.
1512+
`<extra>%{fullData.name}</extra>`. To hide the
1513+
secondary box completely, use an empty tag
1514+
`<extra></extra>`.
15141515
hovertemplatesrc
15151516
Sets the source reference on Chart Studio Cloud for
15161517
`hovertemplate`.
@@ -1927,8 +1928,9 @@ def __init__(
19271928
are available. Finally, the template string has access
19281929
to variable `norm` Anything contained in tag `<extra>`
19291930
is displayed in the secondary box, for example
1930-
"<extra>{fullData.name}</extra>". To hide the secondary
1931-
box completely, use an empty tag `<extra></extra>`.
1931+
`<extra>%{fullData.name}</extra>`. To hide the
1932+
secondary box completely, use an empty tag
1933+
`<extra></extra>`.
19321934
hovertemplatesrc
19331935
Sets the source reference on Chart Studio Cloud for
19341936
`hovertemplate`.

0 commit comments

Comments
 (0)