Skip to content

Commit 301a2bd

Browse files
committed
5197 - fixed typo for scaleY from issue comment
1 parent 6d1cdfe commit 301a2bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Charts/Renderers/HorizontalBarChartRenderer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ open class HorizontalBarChartRenderer: BarChartRenderer
615615
open override func isDrawingValuesAllowed(dataProvider: ChartDataProvider?) -> Bool
616616
{
617617
guard let data = dataProvider?.data else { return false }
618-
let count = CGFloat(dataProvider?.maxVisibleCount ?? 0) * viewPortHandler.scaleX
618+
let count = CGFloat(dataProvider?.maxVisibleCount ?? 0) * viewPortHandler.scaleY
619619
guard count < CGFloat.infinity, !count.isNaN else { return false }
620620
return data.entryCount < Int(count)
621621
}

0 commit comments

Comments
 (0)