Skip to content

Commit

Permalink
Fixed using wrong axis (Issue ChartsOrg#2257)
Browse files Browse the repository at this point in the history
  • Loading branch information
defranke committed Dec 18, 2017
1 parent d321093 commit 88f1811
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 88f1811

Please sign in to comment.