Skip to content

Commit fc0ba5d

Browse files
committed
1.43.1
1 parent 6730655 commit fc0ba5d

24 files changed

+813
-504
lines changed

dist/README.md

+25-25
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ object. This property must be set before the plotly.js script tag, for example:
5151
Plotly.js defaults to US English (en-US) and includes British English (en) in the standard bundle.
5252
Many other localizations are available - here is an example using Swiss-German (de-CH),
5353
see the contents of this directory for the full list.
54-
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.43.0.js
54+
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.43.1.js
5555
Note that the file names are all lowercase, even though the region is uppercase when you apply a locale.
5656

5757
*After* the plotly.js script tag, add:
@@ -74,12 +74,12 @@ The main plotly.js bundle includes all the official (non-beta) trace modules.
7474

7575
It be can imported as minified javascript
7676
- using dist file `dist/plotly.min.js`
77-
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.43.0.min.js
77+
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.43.1.min.js
7878

7979
or as raw javascript:
8080
- using the `plotly.js-dist` npm package (starting in `v1.39.0`)
8181
- using dist file `dist/plotly.js`
82-
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.43.0.js
82+
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.43.1.js
8383
- using CommonJS with `require('plotly.js')`
8484

8585
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`
@@ -88,7 +88,7 @@ The main plotly.js bundle weights in at:
8888

8989
| plotly.js | plotly.min.js | plotly.min.js + gzip | plotly-with-meta.js |
9090
|-----------|---------------|----------------------|---------------------|
91-
| 6 MB | 2.8 MB | 843 kB | 6.2 MB |
91+
| 6 MB | 2.8 MB | 843.2 kB | 6.3 MB |
9292

9393
## Partial bundles
9494

@@ -111,16 +111,16 @@ The `basic` partial bundle contains trace modules `scatter`, `bar` and `pie`.
111111

112112
| Raw size | Minified size | Minified + gzip size |
113113
|------|-----------------|------------------------|
114-
| 2.3 MB | 805.9 kB | 263.4 kB |
114+
| 2.3 MB | 806.3 kB | 263.5 kB |
115115

116116
#### CDN links
117117

118118
| Flavor | URL |
119119
| ------ | --- |
120120
| Latest | https://cdn.plot.ly/plotly-basic-latest.js |
121121
| Latest minified | https://cdn.plot.ly/plotly-basic-latest.min.js |
122-
| Tagged | https://cdn.plot.ly/plotly-basic-1.43.0.js |
123-
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.43.0.min.js |
122+
| Tagged | https://cdn.plot.ly/plotly-basic-1.43.1.js |
123+
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.43.1.min.js |
124124

125125
#### npm package (starting in `v1.39.0`)
126126

@@ -157,16 +157,16 @@ The `cartesian` partial bundle contains trace modules `scatter`, `bar`, `box`, `
157157

158158
| Raw size | Minified size | Minified + gzip size |
159159
|------|-----------------|------------------------|
160-
| 2.6 MB | 918.8 kB | 299.1 kB |
160+
| 2.6 MB | 919.3 kB | 299.2 kB |
161161

162162
#### CDN links
163163

164164
| Flavor | URL |
165165
| ------ | --- |
166166
| Latest | https://cdn.plot.ly/plotly-cartesian-latest.js |
167167
| Latest minified | https://cdn.plot.ly/plotly-cartesian-latest.min.js |
168-
| Tagged | https://cdn.plot.ly/plotly-cartesian-1.43.0.js |
169-
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.43.0.min.js |
168+
| Tagged | https://cdn.plot.ly/plotly-cartesian-1.43.1.js |
169+
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.43.1.min.js |
170170

171171
#### npm package (starting in `v1.39.0`)
172172

@@ -203,16 +203,16 @@ The `geo` partial bundle contains trace modules `scatter`, `scattergeo` and `cho
203203

204204
| Raw size | Minified size | Minified + gzip size |
205205
|------|-----------------|------------------------|
206-
| 2.3 MB | 823.7 kB | 271.3 kB |
206+
| 2.3 MB | 824.1 kB | 271.4 kB |
207207

208208
#### CDN links
209209

210210
| Flavor | URL |
211211
| ------ | --- |
212212
| Latest | https://cdn.plot.ly/plotly-geo-latest.js |
213213
| Latest minified | https://cdn.plot.ly/plotly-geo-latest.min.js |
214-
| Tagged | https://cdn.plot.ly/plotly-geo-1.43.0.js |
215-
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.43.0.min.js |
214+
| Tagged | https://cdn.plot.ly/plotly-geo-1.43.1.js |
215+
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.43.1.min.js |
216216

217217
#### npm package (starting in `v1.39.0`)
218218

@@ -249,16 +249,16 @@ The `gl3d` partial bundle contains trace modules `scatter`, `scatter3d`, `surfac
249249

250250
| Raw size | Minified size | Minified + gzip size |
251251
|------|-----------------|------------------------|
252-
| 3.3 MB | 1.3 MB | 422.9 kB |
252+
| 3.3 MB | 1.3 MB | 423 kB |
253253

254254
#### CDN links
255255

256256
| Flavor | URL |
257257
| ------ | --- |
258258
| Latest | https://cdn.plot.ly/plotly-gl3d-latest.js |
259259
| Latest minified | https://cdn.plot.ly/plotly-gl3d-latest.min.js |
260-
| Tagged | https://cdn.plot.ly/plotly-gl3d-1.43.0.js |
261-
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.43.0.min.js |
260+
| Tagged | https://cdn.plot.ly/plotly-gl3d-1.43.1.js |
261+
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.43.1.min.js |
262262

263263
#### npm package (starting in `v1.39.0`)
264264

@@ -295,16 +295,16 @@ The `gl2d` partial bundle contains trace modules `scatter`, `scattergl`, `splom`
295295

296296
| Raw size | Minified size | Minified + gzip size |
297297
|------|-----------------|------------------------|
298-
| 3.4 MB | 1.4 MB | 440.9 kB |
298+
| 3.4 MB | 1.4 MB | 441 kB |
299299

300300
#### CDN links
301301

302302
| Flavor | URL |
303303
| ------ | --- |
304304
| Latest | https://cdn.plot.ly/plotly-gl2d-latest.js |
305305
| Latest minified | https://cdn.plot.ly/plotly-gl2d-latest.min.js |
306-
| Tagged | https://cdn.plot.ly/plotly-gl2d-1.43.0.js |
307-
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.43.0.min.js |
306+
| Tagged | https://cdn.plot.ly/plotly-gl2d-1.43.1.js |
307+
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.43.1.min.js |
308308

309309
#### npm package (starting in `v1.39.0`)
310310

@@ -341,16 +341,16 @@ The `mapbox` partial bundle contains trace modules `scatter` and `scattermapbox`
341341

342342
| Raw size | Minified size | Minified + gzip size |
343343
|------|-----------------|------------------------|
344-
| 2.8 MB | 1.3 MB | 409.1 kB |
344+
| 2.8 MB | 1.3 MB | 409.2 kB |
345345

346346
#### CDN links
347347

348348
| Flavor | URL |
349349
| ------ | --- |
350350
| Latest | https://cdn.plot.ly/plotly-mapbox-latest.js |
351351
| Latest minified | https://cdn.plot.ly/plotly-mapbox-latest.min.js |
352-
| Tagged | https://cdn.plot.ly/plotly-mapbox-1.43.0.js |
353-
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.43.0.min.js |
352+
| Tagged | https://cdn.plot.ly/plotly-mapbox-1.43.1.js |
353+
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.43.1.min.js |
354354

355355
#### npm package (starting in `v1.39.0`)
356356

@@ -387,16 +387,16 @@ The `finance` partial bundle contains trace modules `scatter`, `bar`, `histogram
387387

388388
| Raw size | Minified size | Minified + gzip size |
389389
|------|-----------------|------------------------|
390-
| 2.3 MB | 837.9 kB | 273.1 kB |
390+
| 2.4 MB | 838.3 kB | 273.2 kB |
391391

392392
#### CDN links
393393

394394
| Flavor | URL |
395395
| ------ | --- |
396396
| Latest | https://cdn.plot.ly/plotly-finance-latest.js |
397397
| Latest minified | https://cdn.plot.ly/plotly-finance-latest.min.js |
398-
| Tagged | https://cdn.plot.ly/plotly-finance-1.43.0.js |
399-
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.43.0.min.js |
398+
| Tagged | https://cdn.plot.ly/plotly-finance-1.43.1.js |
399+
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.43.1.min.js |
400400

401401
#### npm package (starting in `v1.39.0`)
402402

dist/plotly-basic.js

+80-49
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (basic) v1.43.0
2+
* plotly.js (basic) v1.43.1
33
* Copyright 2012-2018, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -33751,7 +33751,7 @@ exports.svgAttrs = {
3375133751
'use strict';
3375233752

3375333753
// package version injected by `npm run preprocess`
33754-
exports.version = '1.43.0';
33754+
exports.version = '1.43.1';
3375533755

3375633756
// inject promise polyfill
3375733757
_dereq_('es6-promise').polyfill();
@@ -50593,9 +50593,13 @@ axes.draw = function(gd, arg, opts) {
5059350593
plotinfo.xaxislayer.selectAll('.' + xa._id + 'tick').remove();
5059450594
plotinfo.yaxislayer.selectAll('.' + ya._id + 'tick').remove();
5059550595
plotinfo.xaxislayer.selectAll('.' + xa._id + 'tick2').remove();
50596+
plotinfo.yaxislayer.selectAll('.' + ya._id + 'tick2').remove();
5059650597
plotinfo.xaxislayer.selectAll('.' + xa._id + 'divider').remove();
50598+
plotinfo.yaxislayer.selectAll('.' + ya._id + 'divider').remove();
50599+
5059750600
if(plotinfo.gridlayer) plotinfo.gridlayer.selectAll('path').remove();
5059850601
if(plotinfo.zerolinelayer) plotinfo.zerolinelayer.selectAll('path').remove();
50602+
5059950603
fullLayout._infolayer.select('.g-' + xa._id + 'title').remove();
5060050604
fullLayout._infolayer.select('.g-' + ya._id + 'title').remove();
5060150605
});
@@ -53621,13 +53625,14 @@ function makeDragBox(gd, plotinfo, x, y, w, h, ns, ew) {
5362153625
for(i = 0; i < axList.length; i++) {
5362253626
ax = axList[i];
5362353627

53624-
if(!ax._rangeInitial) {
53625-
attrs[ax._name + '.autorange'] = true;
53626-
}
53627-
else {
53628-
rangeInitial = ax._rangeInitial;
53629-
attrs[ax._name + '.range[0]'] = rangeInitial[0];
53630-
attrs[ax._name + '.range[1]'] = rangeInitial[1];
53628+
if(!ax.fixedrange) {
53629+
if(!ax._rangeInitial) {
53630+
attrs[ax._name + '.autorange'] = true;
53631+
} else {
53632+
rangeInitial = ax._rangeInitial;
53633+
attrs[ax._name + '.range[0]'] = rangeInitial[0];
53634+
attrs[ax._name + '.range[1]'] = rangeInitial[1];
53635+
}
5363153636
}
5363253637
}
5363353638
}
@@ -56806,6 +56811,7 @@ var cleanNumber = Lib.cleanNumber;
5680656811
var ms2DateTime = Lib.ms2DateTime;
5680756812
var dateTime2ms = Lib.dateTime2ms;
5680856813
var ensureNumber = Lib.ensureNumber;
56814+
var isArrayOrTypedArray = Lib.isArrayOrTypedArray;
5680956815

5681056816
var numConstants = _dereq_('../../constants/numerical');
5681156817
var FP_SAFE = numConstants.FP_SAFE;
@@ -56937,40 +56943,11 @@ module.exports = function setConvert(ax, fullLayout) {
5693756943

5693856944
function setMultiCategoryIndex(arrayIn, len) {
5693956945
var arrayOut = new Array(len);
56940-
var i;
56941-
56942-
// [ [arrayIn[0][i], arrayIn[1][i]], for i .. len ]
56943-
var tmp = new Array(len);
56944-
// [ [cnt, {$cat: index}], for j .. arrayIn.length ]
56945-
var seen = [[0, {}], [0, {}]];
56946-
56947-
if(Lib.isArrayOrTypedArray(arrayIn[0]) && Lib.isArrayOrTypedArray(arrayIn[1])) {
56948-
for(i = 0; i < len; i++) {
56949-
var v0 = arrayIn[0][i];
56950-
var v1 = arrayIn[1][i];
56951-
if(isValidCategory(v0) && isValidCategory(v1)) {
56952-
tmp[i] = [v0, v1];
56953-
if(!(v0 in seen[0][1])) {
56954-
seen[0][1][v0] = seen[0][0]++;
56955-
}
56956-
if(!(v1 in seen[1][1])) {
56957-
seen[1][1][v1] = seen[1][0]++;
56958-
}
56959-
}
56960-
}
56961-
56962-
tmp.sort(function(a, b) {
56963-
var ind0 = seen[0][1];
56964-
var d = ind0[a[0]] - ind0[b[0]];
56965-
if(d) return d;
56966-
56967-
var ind1 = seen[1][1];
56968-
return ind1[a[1]] - ind1[b[1]];
56969-
});
56970-
}
5697156946

56972-
for(i = 0; i < len; i++) {
56973-
arrayOut[i] = setCategoryIndex(tmp[i]);
56947+
for(var i = 0; i < len; i++) {
56948+
var v0 = (arrayIn[0] || [])[i];
56949+
var v1 = (arrayIn[1] || [])[i];
56950+
arrayOut[i] = getCategoryIndex([v0, v1]);
5697456951
}
5697556952

5697656953
return arrayOut;
@@ -57119,6 +57096,56 @@ module.exports = function setConvert(ax, fullLayout) {
5711957096
if(Array.isArray(v) || (typeof v === 'string' && v !== '')) return v;
5712057097
return ensureNumber(v);
5712157098
};
57099+
57100+
ax.setupMultiCategory = function(fullData) {
57101+
var traceIndices = ax._traceIndices;
57102+
var i, j;
57103+
57104+
// [ [cnt, {$cat: index}], for 1,2 ]
57105+
var seen = ax._multicatSeen = [[0, {}], [0, {}]];
57106+
// [ [arrayIn[0][i], arrayIn[1][i]], for i .. N ]
57107+
var list = ax._multicatList = [];
57108+
57109+
for(i = 0; i < traceIndices.length; i++) {
57110+
var trace = fullData[traceIndices[i]];
57111+
57112+
if(axLetter in trace) {
57113+
var arrayIn = trace[axLetter];
57114+
var len = trace._length || Lib.minRowLength(arrayIn);
57115+
57116+
if(isArrayOrTypedArray(arrayIn[0]) && isArrayOrTypedArray(arrayIn[1])) {
57117+
for(j = 0; j < len; j++) {
57118+
var v0 = arrayIn[0][j];
57119+
var v1 = arrayIn[1][j];
57120+
57121+
if(isValidCategory(v0) && isValidCategory(v1)) {
57122+
list.push([v0, v1]);
57123+
57124+
if(!(v0 in seen[0][1])) {
57125+
seen[0][1][v0] = seen[0][0]++;
57126+
}
57127+
if(!(v1 in seen[1][1])) {
57128+
seen[1][1][v1] = seen[1][0]++;
57129+
}
57130+
}
57131+
}
57132+
}
57133+
}
57134+
}
57135+
57136+
list.sort(function(a, b) {
57137+
var ind0 = seen[0][1];
57138+
var d = ind0[a[0]] - ind0[b[0]];
57139+
if(d) return d;
57140+
57141+
var ind1 = seen[1][1];
57142+
return ind1[a[1]] - ind1[b[1]];
57143+
});
57144+
57145+
for(i = 0; i < list.length; i++) {
57146+
setCategoryIndex(list[i]);
57147+
}
57148+
};
5712257149
}
5712357150

5712457151
// find the range value at the specified (linear) fraction of the axis
@@ -61674,9 +61701,9 @@ plots.transition = function(gd, data, layout, traces, frameOpts, transitionOpts)
6167461701
};
6167561702

6167661703
plots.doCalcdata = function(gd, traces) {
61677-
var axList = axisIDs.list(gd),
61678-
fullData = gd._fullData,
61679-
fullLayout = gd._fullLayout;
61704+
var axList = axisIDs.list(gd);
61705+
var fullData = gd._fullData;
61706+
var fullLayout = gd._fullLayout;
6168061707

6168161708
var trace, _module, i, j;
6168261709

@@ -61729,7 +61756,7 @@ plots.doCalcdata = function(gd, traces) {
6172961756
);
6173061757
}
6173161758

61732-
clearAxesCalc(axList);
61759+
setupAxisCategories(axList, fullData);
6173361760

6173461761
var hasCalcTransform = false;
6173561762

@@ -61767,7 +61794,7 @@ plots.doCalcdata = function(gd, traces) {
6176761794
}
6176861795

6176961796
// clear stuff that should recomputed in 'regular' loop
61770-
if(hasCalcTransform) clearAxesCalc(axList);
61797+
if(hasCalcTransform) setupAxisCategories(axList, fullData);
6177161798

6177261799
function calci(i, isContainer) {
6177361800
trace = fullData[i];
@@ -61825,9 +61852,13 @@ plots.doCalcdata = function(gd, traces) {
6182561852
Registry.getComponentMethod('errorbars', 'calc')(gd);
6182661853
};
6182761854

61828-
function clearAxesCalc(axList) {
61855+
function setupAxisCategories(axList, fullData) {
6182961856
for(var i = 0; i < axList.length; i++) {
61830-
axList[i].clearCalc();
61857+
var ax = axList[i];
61858+
ax.clearCalc();
61859+
if(ax.type === 'multicategory') {
61860+
ax.setupMultiCategory(fullData);
61861+
}
6183161862
}
6183261863
}
6183361864

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.

0 commit comments

Comments
 (0)