Skip to content

Commit

Permalink
Fix geom_point() tooltip: pass radius (not diameter) to target collec…
Browse files Browse the repository at this point in the history
…tor.
  • Loading branch information
OLarionova-HORIS committed Apr 12, 2024
1 parent 5f1b289 commit fc1c0d3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ open class PointGeom : GeomBase() {
}

targetCollector.addPoint(
i, location, (shape.size(p, sizeUnitRatio) + shape.strokeWidth(p)),
i, location, (shape.size(p, sizeUnitRatio) + shape.strokeWidth(p)) / 2,
GeomTargetCollector.TooltipParams(
markerColors = colorsByDataPoint(p)
)
Expand Down

0 comments on commit fc1c0d3

Please sign in to comment.