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 (finance) v2.8.2
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.2';
90621
+ exports.version = '2.8.3';
90621
90622
 
90622
90623
  },{}]},{},[12])(12)
90623
90624
  });