ivnsch / SwiftCharts

Easy to use and highly customizable charts library for iOS
Apache License 2.0
2.53k stars 410 forks source link

Divide by zero error -- `modelToScreenRatio` #388

Open jeromeDefReputation opened 5 years ago

jeromeDefReputation commented 5 years ago

modelToScreenRatio in SwiftCharts/Axis/ChartAxis.Swift can return a CGFloat(length) == 0 which will cause a divide by zero fatal error.