Skip to content

Commit ece927f

Browse files
committed
1.38.2
1 parent 852e749 commit ece927f

23 files changed

+102
-92
lines changed

dist/README.md

+19-19
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ You can grab the relevant MathJax files in `./dist/extras/mathjax/`.
3838
Plotly.js defaults to US English (en-US) and includes British English (en) in the standard bundle.
3939
Many other localizations are available - here is an example using Swiss-German (de-CH),
4040
see the contents of this directory for the full list.
41-
They are also available on our CDN as https://cdn.plot.ly/plotly-locale-de-ch-latest.js OR https://cdn.plot.ly/plotly-locale-de-ch-1.38.1.js
41+
They are also available on our CDN as https://cdn.plot.ly/plotly-locale-de-ch-latest.js OR https://cdn.plot.ly/plotly-locale-de-ch-1.38.2.js
4242
Note that the file names are all lowercase, even though the region is uppercase when you apply a locale.
4343

4444
*After* the plotly.js script tag, add:
@@ -61,11 +61,11 @@ The main plotly.js bundle includes all the official (non-beta) trace modules.
6161

6262
It be can imported as minified javascript
6363
- using dist file `dist/plotly.min.js`
64-
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.38.1.min.js
64+
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.38.2.min.js
6565

6666
or as raw javascript:
6767
- using dist file `dist/plotly.js`
68-
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.38.1.js
68+
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.38.2.js
6969
- using CommonJS with `require('plotly.js')`
7070

7171
If you would like to have access to the attribute meta information (including attribute descriptions as on the [schema reference page](https://plot.ly/javascript/reference/)), use dist file `dist/plotly-with-meta.js`
@@ -98,8 +98,8 @@ The `basic` partial bundle contains the `scatter`, `bar` and `pie` trace modules
9898
| dist bundle (minified) | `dist/plotly-basic.min.js` |
9999
| CDN URL (latest) | https://cdn.plot.ly/plotly-basic-latest.js |
100100
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-basic-latest.min.js |
101-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-basic-1.38.1.js |
102-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-basic-1.38.1.min.js |
101+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-basic-1.38.2.js |
102+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-basic-1.38.2.min.js |
103103
| CommonJS | `require('plotly.js/lib/index-basic')` |
104104

105105
| Raw size | Minified size | Minified + gzip size |
@@ -116,13 +116,13 @@ The `cartesian` partial bundle contains the `scatter`, `bar`, `box`, `heatmap`,
116116
| dist bundle (minified) | `dist/plotly-cartesian.min.js` |
117117
| CDN URL (latest) | https://cdn.plot.ly/plotly-cartesian-latest.js |
118118
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-cartesian-latest.min.js |
119-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-cartesian-1.38.1.js |
120-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-cartesian-1.38.1.min.js |
119+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-cartesian-1.38.2.js |
120+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-cartesian-1.38.2.min.js |
121121
| CommonJS | `require('plotly.js/lib/index-cartesian')` |
122122

123123
| Raw size | Minified size | Minified + gzip size |
124124
|------|-----------------|------------------------|
125-
| 2.4 MB | 860.8 kB | 278.8 kB |
125+
| 2.4 MB | 860.9 kB | 278.8 kB |
126126

127127
### plotly.js geo
128128

@@ -134,8 +134,8 @@ The `geo` partial bundle contains the `scatter`, `scattergeo` and `choropleth` t
134134
| dist bundle (minified) | `dist/plotly-geo.min.js` |
135135
| CDN URL (latest) | https://cdn.plot.ly/plotly-geo-latest.js |
136136
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-geo-latest.min.js |
137-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-geo-1.38.1.js |
138-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-geo-1.38.1.min.js |
137+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-geo-1.38.2.js |
138+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-geo-1.38.2.min.js |
139139
| CommonJS | `require('plotly.js/lib/index-geo')` |
140140

141141
| Raw size | Minified size | Minified + gzip size |
@@ -152,8 +152,8 @@ The `gl3d` partial bundle contains the `scatter`, `scatter3d`, `surface`, `mesh3
152152
| dist bundle (minified) | `dist/plotly-gl3d.min.js` |
153153
| CDN URL (latest) | https://cdn.plot.ly/plotly-gl3d-latest.js |
154154
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-gl3d-latest.min.js |
155-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl3d-1.38.1.js |
156-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl3d-1.38.1.min.js |
155+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl3d-1.38.2.js |
156+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl3d-1.38.2.min.js |
157157
| CommonJS | `require('plotly.js/lib/index-gl3d')` |
158158

159159
| Raw size | Minified size | Minified + gzip size |
@@ -170,8 +170,8 @@ The `gl2d` partial bundle contains the `scatter`, `scattergl`, `splom`, `pointcl
170170
| dist bundle (minified) | `dist/plotly-gl2d.min.js` |
171171
| CDN URL (latest) | https://cdn.plot.ly/plotly-gl2d-latest.js |
172172
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-gl2d-latest.min.js |
173-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl2d-1.38.1.js |
174-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl2d-1.38.1.min.js |
173+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl2d-1.38.2.js |
174+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl2d-1.38.2.min.js |
175175
| CommonJS | `require('plotly.js/lib/index-gl2d')` |
176176

177177
| Raw size | Minified size | Minified + gzip size |
@@ -188,8 +188,8 @@ The `mapbox` partial bundle contains the `scatter` and `scattermapbox` trace mod
188188
| dist bundle (minified) | `dist/plotly-mapbox.min.js` |
189189
| CDN URL (latest) | https://cdn.plot.ly/plotly-mapbox-latest.js |
190190
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-mapbox-latest.min.js |
191-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-mapbox-1.38.1.js |
192-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-mapbox-1.38.1.min.js |
191+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-mapbox-1.38.2.js |
192+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-mapbox-1.38.2.min.js |
193193
| CommonJS | `require('plotly.js/lib/index-mapbox')` |
194194

195195
| Raw size | Minified size | Minified + gzip size |
@@ -206,13 +206,13 @@ The `finance` partial bundle contains the `scatter`, `bar`, `histogram`, `pie`,
206206
| dist bundle (minified) | `dist/plotly-finance.min.js` |
207207
| CDN URL (latest) | https://cdn.plot.ly/plotly-finance-latest.js |
208208
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-finance-latest.min.js |
209-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-finance-1.38.1.js |
210-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-finance-1.38.1.min.js |
209+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-finance-1.38.2.js |
210+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-finance-1.38.2.min.js |
211211
| CommonJS | `require('plotly.js/lib/index-finance')` |
212212

213213
| Raw size | Minified size | Minified + gzip size |
214214
|------|-----------------|------------------------|
215-
| 2.2 MB | 779.9 kB | 253.3 kB |
215+
| 2.2 MB | 780 kB | 253.3 kB |
216216

217217
----------------
218218

dist/plotly-basic.js

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (basic) v1.38.1
2+
* plotly.js (basic) v1.38.2
33
* Copyright 2012-2018, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -19631,7 +19631,7 @@ drawing.textPointStyle = function(s, trace, gd) {
1963119631
var p = d3.select(this);
1963219632
var text = Lib.extractOption(d, trace, 'tx', 'text');
1963319633

19634-
if(!text) {
19634+
if(!text && text !== 0) {
1963519635
p.remove();
1963619636
return;
1963719637
}
@@ -22501,7 +22501,7 @@ function createHoverText(hoverData, opts, gd) {
2250122501
else if(d.yLabel === undefined) text = d.xLabel;
2250222502
else text = '(' + d.xLabel + ', ' + d.yLabel + ')';
2250322503

22504-
if(d.text && !Array.isArray(d.text)) {
22504+
if((d.text || d.text === 0) && !Array.isArray(d.text)) {
2250522505
text += (text ? '<br>' : '') + d.text;
2250622506
}
2250722507

@@ -33021,7 +33021,7 @@ exports.svgAttrs = {
3302133021
'use strict';
3302233022

3302333023
// package version injected by `npm run preprocess`
33024-
exports.version = '1.38.1';
33024+
exports.version = '1.38.2';
3302533025

3302633026
// inject promise polyfill
3302733027
require('es6-promise').polyfill();
@@ -61041,10 +61041,12 @@ function appendBarText(gd, bar, calcTrace, i, x0, x1, y0, y1) {
6104161041
orientation = trace.orientation;
6104261042

6104361043
var text = getText(trace, i);
61044-
if(!text) return;
61045-
6104661044
textPosition = getTextPosition(trace, i);
61047-
if(textPosition === 'none') return;
61045+
61046+
if(!text || textPosition === 'none') {
61047+
bar.select('text').remove();
61048+
return;
61049+
}
6104861050

6104961051
var textFont = getTextFont(trace, i, gd._fullLayout.font),
6105061052
insideTextFont = getInsideTextFont(trace, i, textFont),

dist/plotly-basic.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-cartesian.js

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (cartesian) v1.38.1
2+
* plotly.js (cartesian) v1.38.2
33
* Copyright 2012-2018, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -19743,7 +19743,7 @@ drawing.textPointStyle = function(s, trace, gd) {
1974319743
var p = d3.select(this);
1974419744
var text = Lib.extractOption(d, trace, 'tx', 'text');
1974519745

19746-
if(!text) {
19746+
if(!text && text !== 0) {
1974719747
p.remove();
1974819748
return;
1974919749
}
@@ -22613,7 +22613,7 @@ function createHoverText(hoverData, opts, gd) {
2261322613
else if(d.yLabel === undefined) text = d.xLabel;
2261422614
else text = '(' + d.xLabel + ', ' + d.yLabel + ')';
2261522615

22616-
if(d.text && !Array.isArray(d.text)) {
22616+
if((d.text || d.text === 0) && !Array.isArray(d.text)) {
2261722617
text += (text ? '<br>' : '') + d.text;
2261822618
}
2261922619

@@ -33171,7 +33171,7 @@ exports.svgAttrs = {
3317133171
'use strict';
3317233172

3317333173
// package version injected by `npm run preprocess`
33174-
exports.version = '1.38.1';
33174+
exports.version = '1.38.2';
3317533175

3317633176
// inject promise polyfill
3317733177
require('es6-promise').polyfill();
@@ -62314,10 +62314,12 @@ function appendBarText(gd, bar, calcTrace, i, x0, x1, y0, y1) {
6231462314
orientation = trace.orientation;
6231562315

6231662316
var text = getText(trace, i);
62317-
if(!text) return;
62318-
6231962317
textPosition = getTextPosition(trace, i);
62320-
if(textPosition === 'none') return;
62318+
62319+
if(!text || textPosition === 'none') {
62320+
bar.select('text').remove();
62321+
return;
62322+
}
6232162323

6232262324
var textFont = getTextFont(trace, i, gd._fullLayout.font),
6232362325
insideTextFont = getInsideTextFont(trace, i, textFont),

dist/plotly-cartesian.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-finance.js

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (finance) v1.38.1
2+
* plotly.js (finance) v1.38.2
33
* Copyright 2012-2018, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -19673,7 +19673,7 @@ drawing.textPointStyle = function(s, trace, gd) {
1967319673
var p = d3.select(this);
1967419674
var text = Lib.extractOption(d, trace, 'tx', 'text');
1967519675

19676-
if(!text) {
19676+
if(!text && text !== 0) {
1967719677
p.remove();
1967819678
return;
1967919679
}
@@ -22543,7 +22543,7 @@ function createHoverText(hoverData, opts, gd) {
2254322543
else if(d.yLabel === undefined) text = d.xLabel;
2254422544
else text = '(' + d.xLabel + ', ' + d.yLabel + ')';
2254522545

22546-
if(d.text && !Array.isArray(d.text)) {
22546+
if((d.text || d.text === 0) && !Array.isArray(d.text)) {
2254722547
text += (text ? '<br>' : '') + d.text;
2254822548
}
2254922549

@@ -33063,7 +33063,7 @@ exports.svgAttrs = {
3306333063
'use strict';
3306433064

3306533065
// package version injected by `npm run preprocess`
33066-
exports.version = '1.38.1';
33066+
exports.version = '1.38.2';
3306733067

3306833068
// inject promise polyfill
3306933069
require('es6-promise').polyfill();
@@ -61083,10 +61083,12 @@ function appendBarText(gd, bar, calcTrace, i, x0, x1, y0, y1) {
6108361083
orientation = trace.orientation;
6108461084

6108561085
var text = getText(trace, i);
61086-
if(!text) return;
61087-
6108861086
textPosition = getTextPosition(trace, i);
61089-
if(textPosition === 'none') return;
61087+
61088+
if(!text || textPosition === 'none') {
61089+
bar.select('text').remove();
61090+
return;
61091+
}
6109061092

6109161093
var textFont = getTextFont(trace, i, gd._fullLayout.font),
6109261094
insideTextFont = getInsideTextFont(trace, i, textFont),

dist/plotly-finance.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-geo-assets.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-geo.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (geo) v1.38.1
2+
* plotly.js (geo) v1.38.2
33
* Copyright 2012-2018, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -20410,7 +20410,7 @@ drawing.textPointStyle = function(s, trace, gd) {
2041020410
var p = d3.select(this);
2041120411
var text = Lib.extractOption(d, trace, 'tx', 'text');
2041220412

20413-
if(!text) {
20413+
if(!text && text !== 0) {
2041420414
p.remove();
2041520415
return;
2041620416
}
@@ -23280,7 +23280,7 @@ function createHoverText(hoverData, opts, gd) {
2328023280
else if(d.yLabel === undefined) text = d.xLabel;
2328123281
else text = '(' + d.xLabel + ', ' + d.yLabel + ')';
2328223282

23283-
if(d.text && !Array.isArray(d.text)) {
23283+
if((d.text || d.text === 0) && !Array.isArray(d.text)) {
2328423284
text += (text ? '<br>' : '') + d.text;
2328523285
}
2328623286

@@ -33800,7 +33800,7 @@ exports.svgAttrs = {
3380033800
'use strict';
3380133801

3380233802
// package version injected by `npm run preprocess`
33803-
exports.version = '1.38.1';
33803+
exports.version = '1.38.2';
3380433804

3380533805
// inject promise polyfill
3380633806
require('es6-promise').polyfill();

dist/plotly-geo.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-gl2d.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (gl2d) v1.38.1
2+
* plotly.js (gl2d) v1.38.2
33
* Copyright 2012-2018, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -50961,7 +50961,7 @@ drawing.textPointStyle = function(s, trace, gd) {
5096150961
var p = d3.select(this);
5096250962
var text = Lib.extractOption(d, trace, 'tx', 'text');
5096350963

50964-
if(!text) {
50964+
if(!text && text !== 0) {
5096550965
p.remove();
5096650966
return;
5096750967
}
@@ -53831,7 +53831,7 @@ function createHoverText(hoverData, opts, gd) {
5383153831
else if(d.yLabel === undefined) text = d.xLabel;
5383253832
else text = '(' + d.xLabel + ', ' + d.yLabel + ')';
5383353833

53834-
if(d.text && !Array.isArray(d.text)) {
53834+
if((d.text || d.text === 0) && !Array.isArray(d.text)) {
5383553835
text += (text ? '<br>' : '') + d.text;
5383653836
}
5383753837

@@ -64389,7 +64389,7 @@ exports.svgAttrs = {
6438964389
'use strict';
6439064390

6439164391
// package version injected by `npm run preprocess`
64392-
exports.version = '1.38.1';
64392+
exports.version = '1.38.2';
6439364393

6439464394
// inject promise polyfill
6439564395
require('es6-promise').polyfill();

dist/plotly-gl2d.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-gl3d.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (gl3d) v1.38.1
2+
* plotly.js (gl3d) v1.38.2
33
* Copyright 2012-2018, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -57580,7 +57580,7 @@ drawing.textPointStyle = function(s, trace, gd) {
5758057580
var p = d3.select(this);
5758157581
var text = Lib.extractOption(d, trace, 'tx', 'text');
5758257582

57583-
if(!text) {
57583+
if(!text && text !== 0) {
5758457584
p.remove();
5758557585
return;
5758657586
}
@@ -60450,7 +60450,7 @@ function createHoverText(hoverData, opts, gd) {
6045060450
else if(d.yLabel === undefined) text = d.xLabel;
6045160451
else text = '(' + d.xLabel + ', ' + d.yLabel + ')';
6045260452

60453-
if(d.text && !Array.isArray(d.text)) {
60453+
if((d.text || d.text === 0) && !Array.isArray(d.text)) {
6045460454
text += (text ? '<br>' : '') + d.text;
6045560455
}
6045660456

@@ -71014,7 +71014,7 @@ exports.svgAttrs = {
7101471014
'use strict';
7101571015

7101671016
// package version injected by `npm run preprocess`
71017-
exports.version = '1.38.1';
71017+
exports.version = '1.38.2';
7101871018

7101971019
// inject promise polyfill
7102071020
require('es6-promise').polyfill();

dist/plotly-gl3d.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)