diff --git a/ChartsDemo/Swift/Components/BalloonMarker.swift b/ChartsDemo/Swift/Components/BalloonMarker.swift index d18b3d2823..2fe3e93141 100644 --- a/ChartsDemo/Swift/Components/BalloonMarker.swift +++ b/ChartsDemo/Swift/Components/BalloonMarker.swift @@ -85,7 +85,9 @@ public class BalloonMarker: MarkerImage { y: rect.origin.y)) context.fillPath() + rect.origin.x += self.insets.left rect.origin.y += self.insets.top + rect.size.width -= self.insets.left + self.insets.right rect.size.height -= self.insets.top + self.insets.bottom UIGraphicsPushContext(context)