Skip to content

Commit 699eef6

Browse files
authored
support all ternary traces instead of just scatterternary
1 parent 10fa7a4 commit 699eef6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/components/fx/hover.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,8 +662,7 @@ function _hover(gd, evt, subplot, noHoverEvent, eventTarget) {
662662
distance = hoverData[0].distance;
663663
}
664664

665-
// TODO need to support 'scatterternarygl' in future
666-
if (trace.type === 'scatterternary' && spikedistance !== 0) {
665+
if (Registry.traceIs(trace, 'ternary') && spikedistance !== 0) {
667666
const ternary = pointData.subplot;
668667

669668
// as in Cartesian, 'hovered data' relies only on the normal hover result, while

0 commit comments

Comments
 (0)