Skip to content

Commit 8fb6d9f

Browse files
committed
improve legends
1 parent 2ebc1a9 commit 8fb6d9f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/components/drawing/index.js

+6
Original file line numberDiff line numberDiff line change
@@ -1458,6 +1458,12 @@ function getMarkerStandoff(d, trace) {
14581458
standoff = trace.marker.standoff || 0;
14591459
}
14601460

1461+
if(!trace._geo && !trace._xA) {
1462+
// case of legends
1463+
return -standoff;
1464+
}
1465+
1466+
14611467
return standoff;
14621468
}
14631469

0 commit comments

Comments
 (0)