-
Notifications
You must be signed in to change notification settings - Fork 68
Open

Description
- Is there a way to get the data for the Y-Axis to start from a certain number in the dataset ?
- Currently it's just starting from 0 making large numbers essentially a flat horizontal line at the top of the chart.
- I tried adjusting various draw parts of the code with a getMinimumValue func but it still didn't work.
func getMinimumValue() -> CGFloat {
var minimum = Int.max
for data in dataStore {
var newMin = data.reduce(Int.max, { min(Int($0), Int($1)) })
if newMin < minimum {
minimum = newMin
}
}
return CGFloat(minimum)
}
Metadata
Metadata
Assignees
Labels
No labels