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-strict.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* plotly.js (strict) v2.8.
|
|
2
|
+
* plotly.js (strict) v2.8.2
|
|
3
3
|
* Copyright 2012-2021, Plotly, Inc.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Licensed under the MIT license
|
|
@@ -163354,10 +163354,11 @@ function calcTexttemplate(fullLayout, cd, index, xa, ya) {
|
|
|
163354
163354
|
if(!texttemplate) return '';
|
|
163355
163355
|
var isWaterfall = (trace.type === 'waterfall');
|
|
163356
163356
|
var isFunnel = (trace.type === 'funnel');
|
|
163357
|
+
var isHorizontal = trace.orientation === 'h';
|
|
163357
163358
|
|
|
163358
163359
|
var pLetter, pAxis;
|
|
163359
163360
|
var vLetter, vAxis;
|
|
163360
|
-
if(
|
|
163361
|
+
if(isHorizontal) {
|
|
163361
163362
|
pLetter = 'y';
|
|
163362
163363
|
pAxis = ya;
|
|
163363
163364
|
vLetter = 'x';
|
|
@@ -163392,6 +163393,11 @@ function calcTexttemplate(fullLayout, cd, index, xa, ya) {
|
|
|
163392
163393
|
var pt = {};
|
|
163393
163394
|
appendArrayPointValue(pt, trace, cdi.i);
|
|
163394
163395
|
|
|
163396
|
+
if(pt.x === undefined) pt.x = isHorizontal ? obj.value : obj.label;
|
|
163397
|
+
if(pt.y === undefined) pt.y = isHorizontal ? obj.label : obj.value;
|
|
163398
|
+
if(pt.xLabel === undefined) pt.xLabel = isHorizontal ? obj.valueLabel : obj.labelLabel;
|
|
163399
|
+
if(pt.yLabel === undefined) pt.yLabel = isHorizontal ? obj.labelLabel : obj.valueLabel;
|
|
163400
|
+
|
|
163395
163401
|
if(isWaterfall) {
|
|
163396
163402
|
obj.delta = +cdi.rawS || cdi.s;
|
|
163397
163403
|
obj.deltaLabel = formatNumber(obj.delta);
|
|
@@ -178159,8 +178165,9 @@ var getBinSpanLabelRound = _dereq_('./bin_label_vals');
|
|
|
178159
178165
|
function calc(gd, trace) {
|
|
178160
178166
|
var pos = [];
|
|
178161
178167
|
var size = [];
|
|
178162
|
-
var
|
|
178163
|
-
var
|
|
178168
|
+
var isHorizontal = trace.orientation === 'h';
|
|
178169
|
+
var pa = Axes.getFromId(gd, isHorizontal ? trace.yaxis : trace.xaxis);
|
|
178170
|
+
var mainData = isHorizontal ? 'y' : 'x';
|
|
178164
178171
|
var counterData = {x: 'y', y: 'x'}[mainData];
|
|
178165
178172
|
var calendar = trace[mainData + 'calendar'];
|
|
178166
178173
|
var cumulativeSpec = trace.cumulative;
|
|
@@ -208359,7 +208366,7 @@ function getSortFunc(opts, d2c) {
|
|
|
208359
208366
|
'use strict';
|
|
208360
208367
|
|
|
208361
208368
|
// package version injected by `npm run preprocess`
|
|
208362
|
-
exports.version = '2.8.
|
|
208369
|
+
exports.version = '2.8.2';
|
|
208363
208370
|
|
|
208364
208371
|
},{}],934:[function(_dereq_,module,exports){
|
|
208365
208372
|
(function (global){(function (){
|