Giter Club home page Giter Club logo

jmchartview's Introduction

JMChartView

use pod 'JMChartView', '~> 1.0.0'

由于工作需要写了一个折线图,主要是通过几个代理函数导入数据就可实现折线图的效果。

下面是简单的使用说明,如需使用,请告知原作者,谢谢!

作者邮箱:[email protected]

  • (void)viewDidLoad { [super viewDidLoad];

    JMChartView *chartView = [[JMChartView alloc] initWithJMChartDataFrame:CGRectMake(0, 100, self.view.bounds.size.width, 200) withSource:self withStyle:JMLineChartViewStyle]; [self.view addSubview:chartView]; [chartView strokeChart]; }

  • (NSString *)chartViewUnitInLineChart:(JMChartView *)chartView { return @"%"; }

  • (NSArray *)chartView_xLabelArray:(JMChartView *)chartView { NSArray *array = [NSArray arrayWithObjects:@"20140203", @"20140305", @"20140809", @"20140903", @"23133232", @"34735984", @"20153229", nil];

    return array; }

  • (NSArray *)chartView_yValueArray:(JMChartView *)chartView { NSArray *array = [NSArray arrayWithObjects:@"30.9", @"47", @"78.7", @"48", @"87", @"34", @"76", nil];

    return array; }

  • (JMRange)chartViewChooseRangeInLineChart:(JMChartView *)chartView {

    return JMRangeMake(100, 0); }

  • (JMRange)chartViewMarkRangeInLineChart:(JMChartView *)chartView {

    return JMRangeMake(80, 30); }

  • (NSString *)chartViewNameInLineChart:(JMChartView *)chartView { return @"淋巴细胞百分比"; }

  • (NSArray *)chartView_rulingInLineChart:(JMChartView *)chartView { NSArray *array = nil;

    return array; }

jmchartview's People

Contributors

whihail avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.