Latest 1.1.1
Homepage https://github.com/liuqing520it/ChartView
License MIT
Platforms ios 9.0, requires ARC
Authors

LQChartView

This is my first assignment for my second job, to make a chart showing the salesmen’s performance;It was implemented with OC, and now I use swift to realize it. I mainly want to leave something to remember…

image
image

Installation

CocoaPods

  1. install CocoaPods
    $ gem install cocoapods
  2. config Podfile
    pod 'LQChartView','~>1.1.1'
  3. install ChartView
    $ pod install
  4. init ChartView
    let chart = LQChartView(frame: CGRect(x: 0, y: 64, width:UIScreen.main.bounds.width , height: UIScreen.main.bounds.height * 0.5), dataSource: self)
    chart.showInView(view)
  5. 实现代理方法返回 x轴及y轴对应的数据
    // 返回的数组里装的是日期字符串 :2017-9-24
    func chatViewConfigXValue(_ chartView: LQChartView) -> Array<String> {
    return xValues
    }
    //返回y 坐标业绩数据
    func chatViewConfigYValue(_ chartView: LQChartView) -> Array<Float> {
    return yValues
    }

Latest podspec

{
    "name": "LQChartView",
    "version": "1.1.1",
    "license": "MIT",
    "platforms": {
        "ios": "9.0"
    },
    "summary": "show performance chart view",
    "homepage": "https://github.com/liuqing520it/ChartView",
    "authors": {
        "liuqing520it": "[email protected]"
    },
    "source": {
        "git": "https://github.com/liuqing520it/ChartView.git",
        "tag": "1.1.1"
    },
    "description": "u4e00u6b3eu7b80u5355u7684u56feu8868u89c6u56feu6298u7ebfu56feu6216u66f2u7ebfu56fe,u6bcfu6761u7ad6u7ebfu90fdu53efu70b9u51fbu5207u6362u6bcfu5929u7684u6570u636e,u7528u6765u5c55u793au5e97u5458u4e1au7ee9;",
    "source_files": "LQChartView/*.swift",
    "requires_arc": true
}

Pin It on Pinterest

Share This