Skip to content

derekcoder/SwiftChartView

Repository files navigation

SwiftChartView

Version License Platform

A set of chart views written in Swift.

Features

  • Line Chart View
  • Bar Chart View
  • Scatter Chart View
  • Pie Chart View

Requirements

  • iOS 10.0+
  • Swift 4

Installation

CocoaPods

pod 'SwiftChartView'

Usage

Programmatically

import SwiftChartView

let frame = CGRect(x: 0, y: 80, width: 734, height: 240)
let chartView = LineChartView(frame: frame)
view.addSubview(chartView)
chartView.strokeChart(animated: true)

IB (storyboard)

  • Set Class

  • Change attributes

Contact

License

SwiftChartView is released under the MIT license. See LICENSE for details.