plotly.js 2.8.2 → 2.8.3
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 +7 -1
- package/README.md +3 -3
- package/dist/README.md +19 -19
- package/dist/plotly-basic.js +7 -6
- package/dist/plotly-basic.min.js +2 -2
- package/dist/plotly-cartesian.js +7 -6
- package/dist/plotly-cartesian.min.js +2 -2
- package/dist/plotly-finance.js +7 -6
- 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 +2 -2
- 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 +7 -6
- package/dist/plotly-strict.min.js +2 -2
- package/dist/plotly-with-meta.js +7 -6
- package/dist/plotly.js +7 -6
- package/dist/plotly.min.js +2 -2
- package/package.json +1 -1
- package/src/traces/bar/plot.js +5 -4
- package/src/version.js +1 -1
package/dist/plotly-finance.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* plotly.js (finance) v2.8.
|
|
2
|
+
* plotly.js (finance) v2.8.3
|
|
3
3
|
* Copyright 2012-2021, Plotly, Inc.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Licensed under the MIT license
|
|
@@ -77356,6 +77356,7 @@ function calcTexttemplate(fullLayout, cd, index, xa, ya) {
|
|
|
77356
77356
|
var trace = cd[0].trace;
|
|
77357
77357
|
var texttemplate = Lib.castOption(trace, index, 'texttemplate');
|
|
77358
77358
|
if(!texttemplate) return '';
|
|
77359
|
+
var isHistogram = (trace.type === 'histogram');
|
|
77359
77360
|
var isWaterfall = (trace.type === 'waterfall');
|
|
77360
77361
|
var isFunnel = (trace.type === 'funnel');
|
|
77361
77362
|
var isHorizontal = trace.orientation === 'h';
|
|
@@ -77397,10 +77398,10 @@ function calcTexttemplate(fullLayout, cd, index, xa, ya) {
|
|
|
77397
77398
|
var pt = {};
|
|
77398
77399
|
appendArrayPointValue(pt, trace, cdi.i);
|
|
77399
77400
|
|
|
77400
|
-
if(pt.x === undefined) pt.x = isHorizontal ? obj.value : obj.label;
|
|
77401
|
-
if(pt.y === undefined) pt.y = isHorizontal ? obj.label : obj.value;
|
|
77402
|
-
if(pt.xLabel === undefined) pt.xLabel = isHorizontal ? obj.valueLabel : obj.labelLabel;
|
|
77403
|
-
if(pt.yLabel === undefined) pt.yLabel = isHorizontal ? obj.labelLabel : obj.valueLabel;
|
|
77401
|
+
if(isHistogram || pt.x === undefined) pt.x = isHorizontal ? obj.value : obj.label;
|
|
77402
|
+
if(isHistogram || pt.y === undefined) pt.y = isHorizontal ? obj.label : obj.value;
|
|
77403
|
+
if(isHistogram || pt.xLabel === undefined) pt.xLabel = isHorizontal ? obj.valueLabel : obj.labelLabel;
|
|
77404
|
+
if(isHistogram || pt.yLabel === undefined) pt.yLabel = isHorizontal ? obj.labelLabel : obj.valueLabel;
|
|
77404
77405
|
|
|
77405
77406
|
if(isWaterfall) {
|
|
77406
77407
|
obj.delta = +cdi.rawS || cdi.s;
|
|
@@ -90617,7 +90618,7 @@ function getSortFunc(opts, d2c) {
|
|
|
90617
90618
|
'use strict';
|
|
90618
90619
|
|
|
90619
90620
|
// package version injected by `npm run preprocess`
|
|
90620
|
-
exports.version = '2.8.
|
|
90621
|
+
exports.version = '2.8.3';
|
|
90621
90622
|
|
|
90622
90623
|
},{}]},{},[12])(12)
|
|
90623
90624
|
});
|