We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc0a6fe commit ebbb2e1Copy full SHA for ebbb2e1
src/components/fx/hover.js
@@ -381,8 +381,16 @@ function _hover(gd, evt, subplot, noHoverEvent, eventTarget) {
381
}
382
383
} else {
384
- for(curvenum = 0; curvenum < gd.calcdata.length; curvenum++) {
385
- cd = gd.calcdata[curvenum];
+ // take into account zorder
+ var zorderedCalcdata = gd.calcdata.slice();
386
+ zorderedCalcdata.sort(function(a, b) {
387
+ var aZorder = a[0].trace.zorder || 0;
388
+ var bZorder = b[0].trace.zorder || 0;
389
+ return aZorder - bZorder;
390
+ });
391
+
392
+ for(curvenum = 0; curvenum < zorderedCalcdata.length; curvenum++) {
393
+ cd = zorderedCalcdata[curvenum];
394
trace = cd[0].trace;
395
if(trace.hoverinfo !== 'skip' && helpers.isTraceInSubplots(trace, subplots)) {
396
searchData.push(cd);
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments