Skip to content

Commit 8c4202b

Browse files
committed
handle typed array in scattergl text
1 parent 4b50e16 commit 8c4202b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/scattergl/hover.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ function calcHover(pointData, x, y, trace) {
122122
};
123123

124124
// that is single-item arrays_to_calcdata excerpt, since we are doing it for a single point and we don't have to do it beforehead for 1e6 points
125-
di.tx = Array.isArray(trace.text) ? trace.text[id] : trace.text;
125+
di.tx = Lib.isArrayOrTypedArray(trace.text) ? trace.text[id] : trace.text;
126126
di.htx = Array.isArray(trace.hovertext) ? trace.hovertext[id] : trace.hovertext;
127127
di.data = Array.isArray(trace.customdata) ? trace.customdata[id] : trace.customdata;
128128
di.tp = Array.isArray(trace.textposition) ? trace.textposition[id] : trace.textposition;

0 commit comments

Comments
 (0)