Skip to content

Commit

Permalink
Merge pull request #3114 from defranke/HorizontalBarChart-Axis
Browse files Browse the repository at this point in the history
Fixed using wrong axis (Issue #2257)
  • Loading branch information
liuxuan30 authored Dec 25, 2017
2 parents 7238ba9 + 88f1811 commit 64bc2d1
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 64bc2d1

Please sign in to comment.