Skip to content

Y Axis [ Min / Max ] #12

@ghost

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions