Skip to content

Commit 05ebb13

Browse files
committed
hover texts categories undefined resolved
1 parent 46332a9 commit 05ebb13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/plots/cartesian/axes.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1819,7 +1819,8 @@ function formatCategory(ax, out) {
18191819

18201820
function formatMultiCategory(ax, out, hover) {
18211821
var v = Math.round(out.x);
1822-
var cats = ax._categories[v].map(function(cat) {return cat;}) || [];
1822+
var cats = ax._categories[v] || [];
1823+
18231824
var texts = cats.slice().reverse().map(function(cat) {
18241825
return cat === undefined ? '' : String(cat);
18251826
});

0 commit comments

Comments
 (0)