DragonCat4012 / BarChart

Swift Simple BarChart Example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)
    }
}

About

Swift Simple BarChart Example

License:MIT License


Languages

Language:Swift 100.0%