plotly.js 2.16.1 → 2.16.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 (gl3d) v2.16.1
2
+ * plotly.js (gl3d) v2.16.3
3
3
  * Copyright 2012-2022, Plotly, Inc.
4
4
  * All rights reserved.
5
5
  * Licensed under the MIT license
@@ -29409,7 +29409,17 @@ function createHoverText(hoverData, opts) {
29409
29409
  var xa = c0.xa;
29410
29410
  var ya = c0.ya;
29411
29411
  var axLetter = hovermode.charAt(0);
29412
- var t0 = c0[axLetter + 'Label'];
29412
+ var axLabel = axLetter + 'Label';
29413
+ var t0 = c0[axLabel];
29414
+
29415
+ // search in array for the label
29416
+ if(t0 === undefined && xa.type === 'multicategory') {
29417
+ for(var q = 0; q < hoverData.length; q++) {
29418
+ t0 = hoverData[q][axLabel];
29419
+ if(t0 !== undefined) break;
29420
+ }
29421
+ }
29422
+
29413
29423
  var outerContainerBB = getBoundingClientRect(gd, outerContainer);
29414
29424
  var outerTop = outerContainerBB.top;
29415
29425
  var outerWidth = outerContainerBB.width;
@@ -30588,7 +30598,7 @@ function getCoord(axLetter, winningPoint, fullLayout) {
30588
30598
 
30589
30599
  var cd0 = winningPoint.cd[0];
30590
30600
 
30591
- if(ax.type === 'category') val = ax._categoriesMap[val];
30601
+ if(ax.type === 'category' || ax.type === 'multicategory') val = ax._categoriesMap[val];
30592
30602
  else if(ax.type === 'date') {
30593
30603
  var periodalignment = winningPoint.trace[axLetter + 'periodalignment'];
30594
30604
  if(periodalignment) {
@@ -89060,7 +89070,7 @@ function getSortFunc(opts, d2c) {
89060
89070
  'use strict';
89061
89071
 
89062
89072
  // package version injected by `npm run preprocess`
89063
- exports.version = '2.16.1';
89073
+ exports.version = '2.16.3';
89064
89074
 
89065
89075
  },{}],444:[function(_dereq_,module,exports){
89066
89076
  (function (global){(function (){