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 (cartesian) v2.8.2
2
+ * plotly.js (cartesian) v2.8.3
3
3
  * Copyright 2012-2021, Plotly, Inc.
4
4
  * All rights reserved.
5
5
  * Licensed under the MIT license
@@ -86417,6 +86417,7 @@ function calcTexttemplate(fullLayout, cd, index, xa, ya) {
86417
86417
  var trace = cd[0].trace;
86418
86418
  var texttemplate = Lib.castOption(trace, index, 'texttemplate');
86419
86419
  if(!texttemplate) return '';
86420
+ var isHistogram = (trace.type === 'histogram');
86420
86421
  var isWaterfall = (trace.type === 'waterfall');
86421
86422
  var isFunnel = (trace.type === 'funnel');
86422
86423
  var isHorizontal = trace.orientation === 'h';
@@ -86458,10 +86459,10 @@ function calcTexttemplate(fullLayout, cd, index, xa, ya) {
86458
86459
  var pt = {};
86459
86460
  appendArrayPointValue(pt, trace, cdi.i);
86460
86461
 
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;
86462
+ if(isHistogram || pt.x === undefined) pt.x = isHorizontal ? obj.value : obj.label;
86463
+ if(isHistogram || pt.y === undefined) pt.y = isHorizontal ? obj.label : obj.value;
86464
+ if(isHistogram || pt.xLabel === undefined) pt.xLabel = isHorizontal ? obj.valueLabel : obj.labelLabel;
86465
+ if(isHistogram || pt.yLabel === undefined) pt.yLabel = isHorizontal ? obj.labelLabel : obj.valueLabel;
86465
86466
 
86466
86467
  if(isWaterfall) {
86467
86468
  obj.delta = +cdi.rawS || cdi.s;
@@ -102816,7 +102817,7 @@ function getSortFunc(opts, d2c) {
102816
102817
  'use strict';
102817
102818
 
102818
102819
  // package version injected by `npm run preprocess`
102819
- exports.version = '2.8.2';
102820
+ exports.version = '2.8.3';
102820
102821
 
102821
102822
  },{}]},{},[15])(15)
102822
102823
  });