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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * plotly.js (strict) v2.8.2
2
+ * plotly.js (strict) v2.8.3
3
3
  * Copyright 2012-2021, Plotly, Inc.
4
4
  * All rights reserved.
5
5
  * Licensed under the MIT license
@@ -163352,6 +163352,7 @@ function calcTexttemplate(fullLayout, cd, index, xa, ya) {
163352
163352
  var trace = cd[0].trace;
163353
163353
  var texttemplate = Lib.castOption(trace, index, 'texttemplate');
163354
163354
  if(!texttemplate) return '';
163355
+ var isHistogram = (trace.type === 'histogram');
163355
163356
  var isWaterfall = (trace.type === 'waterfall');
163356
163357
  var isFunnel = (trace.type === 'funnel');
163357
163358
  var isHorizontal = trace.orientation === 'h';
@@ -163393,10 +163394,10 @@ function calcTexttemplate(fullLayout, cd, index, xa, ya) {
163393
163394
  var pt = {};
163394
163395
  appendArrayPointValue(pt, trace, cdi.i);
163395
163396
 
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;
163397
+ if(isHistogram || pt.x === undefined) pt.x = isHorizontal ? obj.value : obj.label;
163398
+ if(isHistogram || pt.y === undefined) pt.y = isHorizontal ? obj.label : obj.value;
163399
+ if(isHistogram || pt.xLabel === undefined) pt.xLabel = isHorizontal ? obj.valueLabel : obj.labelLabel;
163400
+ if(isHistogram || pt.yLabel === undefined) pt.yLabel = isHorizontal ? obj.labelLabel : obj.valueLabel;
163400
163401
 
163401
163402
  if(isWaterfall) {
163402
163403
  obj.delta = +cdi.rawS || cdi.s;
@@ -208366,7 +208367,7 @@ function getSortFunc(opts, d2c) {
208366
208367
  'use strict';
208367
208368
 
208368
208369
  // package version injected by `npm run preprocess`
208369
- exports.version = '2.8.2';
208370
+ exports.version = '2.8.3';
208370
208371
 
208371
208372
  },{}],934:[function(_dereq_,module,exports){
208372
208373
  (function (global){(function (){