Skip to content

Commit 3896b08

Browse files
Annotation arrows can now be placed using absolute paper coordinates
1 parent f9d9c35 commit 3896b08

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/annotations/defaults.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ function handleAnnotationDefaults(annIn, annOut, fullLayout) {
6060
if(showArrow) {
6161
var arrowPosAttr = 'a' + axLetter;
6262
// axref, ayref
63-
var aaxRef = Axes.coerceRef(annIn, annOut, gdMock, arrowPosAttr, 'pixel',
64-
undefined, true);
63+
var aaxRef = Axes.coerceRef(annIn, annOut, gdMock, arrowPosAttr, '', 'paper', true);
6564

6665
// for now the arrow can only be on the same axis or specified as pixels
6766
// TODO: sometime it might be interesting to allow it to be on *any* axis

0 commit comments

Comments
 (0)