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-cartesian.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* plotly.js (cartesian) v2.8.
|
|
2
|
+
* plotly.js (cartesian) v2.8.2
|
|
3
3
|
* Copyright 2012-2021, Plotly, Inc.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Licensed under the MIT license
|
|
@@ -86419,10 +86419,11 @@ function calcTexttemplate(fullLayout, cd, index, xa, ya) {
|
|
|
86419
86419
|
if(!texttemplate) return '';
|
|
86420
86420
|
var isWaterfall = (trace.type === 'waterfall');
|
|
86421
86421
|
var isFunnel = (trace.type === 'funnel');
|
|
86422
|
+
var isHorizontal = trace.orientation === 'h';
|
|
86422
86423
|
|
|
86423
86424
|
var pLetter, pAxis;
|
|
86424
86425
|
var vLetter, vAxis;
|
|
86425
|
-
if(
|
|
86426
|
+
if(isHorizontal) {
|
|
86426
86427
|
pLetter = 'y';
|
|
86427
86428
|
pAxis = ya;
|
|
86428
86429
|
vLetter = 'x';
|
|
@@ -86457,6 +86458,11 @@ function calcTexttemplate(fullLayout, cd, index, xa, ya) {
|
|
|
86457
86458
|
var pt = {};
|
|
86458
86459
|
appendArrayPointValue(pt, trace, cdi.i);
|
|
86459
86460
|
|
|
86461
|
+
if(pt.x === undefined) pt.x = isHorizontal ? obj.value : obj.label;
|
|
86462
|
+
if(pt.y === undefined) pt.y = isHorizontal ? obj.label : obj.value;
|
|
86463
|
+
if(pt.xLabel === undefined) pt.xLabel = isHorizontal ? obj.valueLabel : obj.labelLabel;
|
|
86464
|
+
if(pt.yLabel === undefined) pt.yLabel = isHorizontal ? obj.labelLabel : obj.valueLabel;
|
|
86465
|
+
|
|
86460
86466
|
if(isWaterfall) {
|
|
86461
86467
|
obj.delta = +cdi.rawS || cdi.s;
|
|
86462
86468
|
obj.deltaLabel = formatNumber(obj.delta);
|
|
@@ -93399,8 +93405,9 @@ var getBinSpanLabelRound = _dereq_('./bin_label_vals');
|
|
|
93399
93405
|
function calc(gd, trace) {
|
|
93400
93406
|
var pos = [];
|
|
93401
93407
|
var size = [];
|
|
93402
|
-
var
|
|
93403
|
-
var
|
|
93408
|
+
var isHorizontal = trace.orientation === 'h';
|
|
93409
|
+
var pa = Axes.getFromId(gd, isHorizontal ? trace.yaxis : trace.xaxis);
|
|
93410
|
+
var mainData = isHorizontal ? 'y' : 'x';
|
|
93404
93411
|
var counterData = {x: 'y', y: 'x'}[mainData];
|
|
93405
93412
|
var calendar = trace[mainData + 'calendar'];
|
|
93406
93413
|
var cumulativeSpec = trace.cumulative;
|
|
@@ -102809,7 +102816,7 @@ function getSortFunc(opts, d2c) {
|
|
|
102809
102816
|
'use strict';
|
|
102810
102817
|
|
|
102811
102818
|
// package version injected by `npm run preprocess`
|
|
102812
|
-
exports.version = '2.8.
|
|
102819
|
+
exports.version = '2.8.2';
|
|
102813
102820
|
|
|
102814
102821
|
},{}]},{},[15])(15)
|
|
102815
102822
|
});
|