Latest 1.0.2
Homepage https://github.com/cslmark/SLCurveChartDemo
License MIT
Platforms ios 7.0, requires ARC
Frameworks Foundation, UIKit
Authors

SLCurveChartDemo

A Easy Way to draw a curve chart for iOS!

重要的事情说三遍,本地址不在维护,新的仓库地址为

https://github.com/cslmark/SLCurveChartLib
https://github.com/cslmark/SLCurveChartLib
https://github.com/cslmark/SLCurveChartLib

cocoapod集成

pod ‘SLCurveChartLib’, ‘~> 1.0.2’

效果展示

使用该库可以非常灵活的配置曲线颜色,曲线样式,对应X轴和自定义的Y轴配置,动态纵坐标,是否使能缩放X轴,以及对应网格等等。效果如下图所示:

  • 显示左侧Y轴以及Y轴网格
    image
  • 不显示任何坐标轴以及对应的网格
    image
  • 显示X轴和对应的网格
    image
  • 显示正常的左测Y轴和X轴和对应的网格
    image
  • 同时显示X轴,左右两侧的Y轴以及对应的网格
    image

使用说明

目前还未上传到cocoapod所以只能通过源码集成
Lib文件夹如下:
image

API的调用和具体参照DEMO,如果通过代码创建的UIView还是通过Xib、Storyboard来创建。只需要改View的类是BaseCurveView就能轻松实现作图的功能,其中曲线颜色,线宽,X轴,Y轴的字体,颜色,网格的实线,虚线均可以灵活配置。
使用的时候引入总头文件#import "SLCurveChartLib.h"即可.

Latest podspec

{
    "name": "SLCurveChartLib",
    "version": "1.0.2",
    "summary": "Offer a easy to built a statisticsView For iOS",
    "description": "It is a marquee view used on iOS, which implement by Objective-C.",
    "homepage": "https://github.com/cslmark/SLCurveChartDemo",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "cslmark": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/cslmark/SLCurveChartLib.git",
        "tag": "1.0.2"
    },
    "source_files": "SLChartLibDemo/SLChartLibDemo/SLCurveChartLib/**/*.{h,m}",
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This