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 v2.16.1
2
+ * plotly.js v2.16.3
3
3
  * Copyright 2012-2022, Plotly, Inc.
4
4
  * All rights reserved.
5
5
  * Licensed under the MIT license
@@ -68,7 +68,7 @@ exports.topojson = saneTopojson;
68
68
  'use strict';
69
69
 
70
70
  // package version injected by `npm run preprocess`
71
- exports.version = '2.16.1';
71
+ exports.version = '2.16.3';
72
72
 
73
73
  },{}]},{},[16])(16)
74
74
  });
@@ -1,5 +1,5 @@
1
1
  /**
2
- * plotly.js (geo) v2.16.1
2
+ * plotly.js (geo) v2.16.3
3
3
  * Copyright 2012-2022, Plotly, Inc.
4
4
  * All rights reserved.
5
5
  * Licensed under the MIT license
@@ -42472,7 +42472,17 @@ function createHoverText(hoverData, opts) {
42472
42472
  var xa = c0.xa;
42473
42473
  var ya = c0.ya;
42474
42474
  var axLetter = hovermode.charAt(0);
42475
- var t0 = c0[axLetter + 'Label'];
42475
+ var axLabel = axLetter + 'Label';
42476
+ var t0 = c0[axLabel];
42477
+
42478
+ // search in array for the label
42479
+ if(t0 === undefined && xa.type === 'multicategory') {
42480
+ for(var q = 0; q < hoverData.length; q++) {
42481
+ t0 = hoverData[q][axLabel];
42482
+ if(t0 !== undefined) break;
42483
+ }
42484
+ }
42485
+
42476
42486
  var outerContainerBB = getBoundingClientRect(gd, outerContainer);
42477
42487
  var outerTop = outerContainerBB.top;
42478
42488
  var outerWidth = outerContainerBB.width;
@@ -43651,7 +43661,7 @@ function getCoord(axLetter, winningPoint, fullLayout) {
43651
43661
 
43652
43662
  var cd0 = winningPoint.cd[0];
43653
43663
 
43654
- if(ax.type === 'category') val = ax._categoriesMap[val];
43664
+ if(ax.type === 'category' || ax.type === 'multicategory') val = ax._categoriesMap[val];
43655
43665
  else if(ax.type === 'date') {
43656
43666
  var periodalignment = winningPoint.trace[axLetter + 'periodalignment'];
43657
43667
  if(periodalignment) {
@@ -98183,7 +98193,7 @@ function getSortFunc(opts, d2c) {
98183
98193
  'use strict';
98184
98194
 
98185
98195
  // package version injected by `npm run preprocess`
98186
- exports.version = '2.16.1';
98196
+ exports.version = '2.16.3';
98187
98197
 
98188
98198
  },{}]},{},[8])(8)
98189
98199
  });