plotly.js 2.8.1 → 2.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +3 -3
- package/dist/README.md +21 -21
- package/dist/plotly-basic.js +9 -3
- package/dist/plotly-basic.min.js +2 -2
- package/dist/plotly-cartesian.js +12 -5
- package/dist/plotly-cartesian.min.js +2 -2
- package/dist/plotly-finance.js +12 -5
- package/dist/plotly-finance.min.js +2 -2
- package/dist/plotly-geo-assets.js +2 -2
- package/dist/plotly-geo.js +2 -2
- package/dist/plotly-geo.min.js +2 -2
- package/dist/plotly-gl2d.js +5 -4
- package/dist/plotly-gl2d.min.js +2 -2
- package/dist/plotly-gl3d.js +2 -2
- package/dist/plotly-gl3d.min.js +2 -2
- package/dist/plotly-mapbox.js +2 -2
- package/dist/plotly-mapbox.min.js +2 -2
- package/dist/plotly-strict.js +12 -5
- package/dist/plotly-strict.min.js +2 -2
- package/dist/plotly-with-meta.js +12 -5
- package/dist/plotly.js +12 -5
- package/dist/plotly.min.js +2 -2
- package/package.json +1 -1
- package/src/traces/bar/plot.js +7 -1
- package/src/traces/histogram/calc.js +3 -2
- package/src/version.js +1 -1
package/dist/plotly-with-meta.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* plotly.js v2.8.
|
|
2
|
+
* plotly.js v2.8.2
|
|
3
3
|
* Copyright 2012-2021, Plotly, Inc.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Licensed under the MIT license
|
|
@@ -176120,10 +176120,11 @@ function calcTexttemplate(fullLayout, cd, index, xa, ya) {
|
|
|
176120
176120
|
if(!texttemplate) return '';
|
|
176121
176121
|
var isWaterfall = (trace.type === 'waterfall');
|
|
176122
176122
|
var isFunnel = (trace.type === 'funnel');
|
|
176123
|
+
var isHorizontal = trace.orientation === 'h';
|
|
176123
176124
|
|
|
176124
176125
|
var pLetter, pAxis;
|
|
176125
176126
|
var vLetter, vAxis;
|
|
176126
|
-
if(
|
|
176127
|
+
if(isHorizontal) {
|
|
176127
176128
|
pLetter = 'y';
|
|
176128
176129
|
pAxis = ya;
|
|
176129
176130
|
vLetter = 'x';
|
|
@@ -176158,6 +176159,11 @@ function calcTexttemplate(fullLayout, cd, index, xa, ya) {
|
|
|
176158
176159
|
var pt = {};
|
|
176159
176160
|
appendArrayPointValue(pt, trace, cdi.i);
|
|
176160
176161
|
|
|
176162
|
+
if(pt.x === undefined) pt.x = isHorizontal ? obj.value : obj.label;
|
|
176163
|
+
if(pt.y === undefined) pt.y = isHorizontal ? obj.label : obj.value;
|
|
176164
|
+
if(pt.xLabel === undefined) pt.xLabel = isHorizontal ? obj.valueLabel : obj.labelLabel;
|
|
176165
|
+
if(pt.yLabel === undefined) pt.yLabel = isHorizontal ? obj.labelLabel : obj.valueLabel;
|
|
176166
|
+
|
|
176161
176167
|
if(isWaterfall) {
|
|
176162
176168
|
obj.delta = +cdi.rawS || cdi.s;
|
|
176163
176169
|
obj.deltaLabel = formatNumber(obj.delta);
|
|
@@ -192006,8 +192012,9 @@ var getBinSpanLabelRound = _dereq_('./bin_label_vals');
|
|
|
192006
192012
|
function calc(gd, trace) {
|
|
192007
192013
|
var pos = [];
|
|
192008
192014
|
var size = [];
|
|
192009
|
-
var
|
|
192010
|
-
var
|
|
192015
|
+
var isHorizontal = trace.orientation === 'h';
|
|
192016
|
+
var pa = Axes.getFromId(gd, isHorizontal ? trace.yaxis : trace.xaxis);
|
|
192017
|
+
var mainData = isHorizontal ? 'y' : 'x';
|
|
192011
192018
|
var counterData = {x: 'y', y: 'x'}[mainData];
|
|
192012
192019
|
var calendar = trace[mainData + 'calendar'];
|
|
192013
192020
|
var cumulativeSpec = trace.cumulative;
|
|
@@ -230512,7 +230519,7 @@ function getSortFunc(opts, d2c) {
|
|
|
230512
230519
|
'use strict';
|
|
230513
230520
|
|
|
230514
230521
|
// package version injected by `npm run preprocess`
|
|
230515
|
-
exports.version = '2.8.
|
|
230522
|
+
exports.version = '2.8.2';
|
|
230516
230523
|
|
|
230517
230524
|
},{}],1120:[function(_dereq_,module,exports){
|
|
230518
230525
|
(function (global){(function (){
|
package/dist/plotly.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* plotly.js v2.8.
|
|
2
|
+
* plotly.js v2.8.2
|
|
3
3
|
* Copyright 2012-2021, Plotly, Inc.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Licensed under the MIT license
|
|
@@ -173023,10 +173023,11 @@ function calcTexttemplate(fullLayout, cd, index, xa, ya) {
|
|
|
173023
173023
|
if(!texttemplate) return '';
|
|
173024
173024
|
var isWaterfall = (trace.type === 'waterfall');
|
|
173025
173025
|
var isFunnel = (trace.type === 'funnel');
|
|
173026
|
+
var isHorizontal = trace.orientation === 'h';
|
|
173026
173027
|
|
|
173027
173028
|
var pLetter, pAxis;
|
|
173028
173029
|
var vLetter, vAxis;
|
|
173029
|
-
if(
|
|
173030
|
+
if(isHorizontal) {
|
|
173030
173031
|
pLetter = 'y';
|
|
173031
173032
|
pAxis = ya;
|
|
173032
173033
|
vLetter = 'x';
|
|
@@ -173061,6 +173062,11 @@ function calcTexttemplate(fullLayout, cd, index, xa, ya) {
|
|
|
173061
173062
|
var pt = {};
|
|
173062
173063
|
appendArrayPointValue(pt, trace, cdi.i);
|
|
173063
173064
|
|
|
173065
|
+
if(pt.x === undefined) pt.x = isHorizontal ? obj.value : obj.label;
|
|
173066
|
+
if(pt.y === undefined) pt.y = isHorizontal ? obj.label : obj.value;
|
|
173067
|
+
if(pt.xLabel === undefined) pt.xLabel = isHorizontal ? obj.valueLabel : obj.labelLabel;
|
|
173068
|
+
if(pt.yLabel === undefined) pt.yLabel = isHorizontal ? obj.labelLabel : obj.valueLabel;
|
|
173069
|
+
|
|
173064
173070
|
if(isWaterfall) {
|
|
173065
173071
|
obj.delta = +cdi.rawS || cdi.s;
|
|
173066
173072
|
obj.deltaLabel = formatNumber(obj.delta);
|
|
@@ -187828,8 +187834,9 @@ var getBinSpanLabelRound = _dereq_('./bin_label_vals');
|
|
|
187828
187834
|
function calc(gd, trace) {
|
|
187829
187835
|
var pos = [];
|
|
187830
187836
|
var size = [];
|
|
187831
|
-
var
|
|
187832
|
-
var
|
|
187837
|
+
var isHorizontal = trace.orientation === 'h';
|
|
187838
|
+
var pa = Axes.getFromId(gd, isHorizontal ? trace.yaxis : trace.xaxis);
|
|
187839
|
+
var mainData = isHorizontal ? 'y' : 'x';
|
|
187833
187840
|
var counterData = {x: 'y', y: 'x'}[mainData];
|
|
187834
187841
|
var calendar = trace[mainData + 'calendar'];
|
|
187835
187842
|
var cumulativeSpec = trace.cumulative;
|
|
@@ -224083,7 +224090,7 @@ function getSortFunc(opts, d2c) {
|
|
|
224083
224090
|
'use strict';
|
|
224084
224091
|
|
|
224085
224092
|
// package version injected by `npm run preprocess`
|
|
224086
|
-
exports.version = '2.8.
|
|
224093
|
+
exports.version = '2.8.2';
|
|
224087
224094
|
|
|
224088
224095
|
},{}],1120:[function(_dereq_,module,exports){
|
|
224089
224096
|
(function (global){(function (){
|