Skip to content

Commit 7953488

Browse files
committed
Fix cartesian check and fine-tune marker placement
1 parent 75da2fe commit 7953488

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/plots/cartesian/graph_interact.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ function hover(gd, evt, subplot) {
591591

592592
gd._hoverdata = newhoverdata;
593593

594-
if(hoverChanged(gd, evt, oldhoverdata) && gd._hasCartesian) {
594+
if(hoverChanged(gd, evt, oldhoverdata) && fullLayout._hasCartesian) {
595595
var droplineOpts = {
596596
hovermode: hovermode,
597597
fullLayout: fullLayout,
@@ -919,7 +919,7 @@ function createDroplines(hoverData, opts) {
919919
if(yMarker) {
920920
container.append('circle')
921921
.attr({
922-
'cx': xAnchoredBase,
922+
'cx': xAnchoredBase + yThickness,
923923
'cy': yPoint,
924924
'r': yThickness,
925925
'fill': yColor
@@ -964,7 +964,7 @@ function createDroplines(hoverData, opts) {
964964
container.append('circle')
965965
.attr({
966966
'cx': xPoint,
967-
'cy': yAnchoredBase,
967+
'cy': yAnchoredBase - xThickness,
968968
'r': xThickness,
969969
'fill': xColor
970970
})

0 commit comments

Comments
 (0)