public func reportForStations(occupationLow low: Int, medium: Int, high: Int, unavailable: Int) -> String? | |
{ | |
guard let template = self.loadTemplate(ofType: .occupation) else | |
{ | |
return nil | |
} | |
let dataArray = self.makeChartDataArray(for: [ low, medium, high, unavailable ]) | |
let content = String(format: template, "\(low)", "\(medium)", "\(high)", "\(unavailable)", dataArray) | |
return content | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment