We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d1cdfe commit 301a2bdCopy full SHA for 301a2bd
Source/Charts/Renderers/HorizontalBarChartRenderer.swift
@@ -615,7 +615,7 @@ open class HorizontalBarChartRenderer: BarChartRenderer
615
open override func isDrawingValuesAllowed(dataProvider: ChartDataProvider?) -> Bool
616
{
617
guard let data = dataProvider?.data else { return false }
618
- let count = CGFloat(dataProvider?.maxVisibleCount ?? 0) * viewPortHandler.scaleX
+ let count = CGFloat(dataProvider?.maxVisibleCount ?? 0) * viewPortHandler.scaleY
619
guard count < CGFloat.infinity, !count.isNaN else { return false }
620
return data.entryCount < Int(count)
621
}
0 commit comments