From 88f1811cc9b574f9d22ac259b1d9455f2ffa3674 Mon Sep 17 00:00:00 2001 From: Dennis Franke Date: Mon, 18 Dec 2017 17:58:05 +0100 Subject: [PATCH] Fixed using wrong axis (Issue #2257) --- Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift b/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift index 8faf863771..4f09402120 100644 --- a/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift +++ b/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift @@ -35,7 +35,7 @@ open class XAxisRendererHorizontalBarChart: XAxisRenderer { // calculate the starting and entry point of the y-labels (depending on // zoom / contentrect bounds) - if viewPortHandler.contentWidth > 10 && !viewPortHandler.isFullyZoomedOutX + if viewPortHandler.contentWidth > 10 && !viewPortHandler.isFullyZoomedOutY { let p1 = transformer.valueForTouchPoint(CGPoint(x: viewPortHandler.contentLeft, y: viewPortHandler.contentBottom)) let p2 = transformer.valueForTouchPoint(CGPoint(x: viewPortHandler.contentLeft, y: viewPortHandler.contentTop))