/BarChart

Swift Simple BarChart Example

Primary LanguageSwiftMIT LicenseMIT

BarChart

Simple Swift UIKIt BarChart

Example Usage

import UIKit

class ViewController: UIViewController {
    @IBOutlet weak var barChart: BarChartView!
    let values = [1.0, 13.0, 15.0, 9.0, 5.0, 2.0, 6.0, 9.0, 5.0, 3.0, 11.0, 10.0, 14]

    override func viewDidLoad() {
        super.viewDidLoad()
        barChart.maxValue = 20.0
        barChart.drawChart(values)
    }
}