Code Monkey home page Code Monkey logo

kchartdemo's Introduction

股票k线图

Mou icon Mou icon Mou icon

使用

1.	k线图 
		_kLineChartView = [[KLineChartView alloc] initWithFrame:CGRectMake(20, 50, self.view.frame.size.width - 40.0f, 300.0f)];
    	_kLineChartView.backgroundColor = [UIColor whiteColor];      		_kLineChartView.topMargin = 20.0f;
    	_kLineChartView.rightMargin = 1.0;
    	_kLineChartView.bottomMargin = 80.0f;
    	// YES表示:Y坐标的值根据视图中呈现的k线图的最大值最小值变化而变化;NO表示:Y坐标是所有数据中的最大值最小值,不管k线图呈现如何都不会变化。默认YES
    	//_kLineChartView.yAxisTitleIsChange = NO;
        
    	// 及时更新k线图
    	//_kLineChartView.dynamicUpdateIsNew = YES;
        
    	//是否支持手势
  	    //_kLineChartView.supportGesture = NO;

2. 分时图
		_tLineChartView = [[TLineChartView alloc] initWithFrame:CGRectMake(20, 380.0f, self.view.frame.size.width - 40.0f, 180.0f)];
        _tLineChartView.backgroundColor = [UIColor whiteColor];
        _tLineChartView.topMargin = 5.0f;
        _tLineChartView.leftMargin = 50.0;
        _tLineChartView.bottomMargin = 0.5;
        _tLineChartView.rightMargin = 1.0;
        _tLineChartView.pointPadding = 1.6;
        _tLineChartView.flashPoint = YES;
        // 圆滑的曲线
        //_tLineChartView.smoothPath = NO;

注意⚠️

  1. 其他参数设置可以查看KLineChartView.h & TLineChartView.h 头文件。
  2. 网络请求查看 KLineListManager.m 文件。
  3. 数据处理查看 KLineListTransformer.m 文件。

其他

1.k线图功能比较完整,如有不同需求,可以自行改动就能满足需求。

2.在使用的过程中有什么不明白的地方可以给我提 Issues

3.为什么不适用pod管理的原因,希望能够提供让更多的人参与自行修改,能够定制自己的k线图。

4.GNetworkinghttps://github.com/DerClown/GNetworking这个网络请求,是我借鉴 YTKcasatwy 写的一个高性能的网络框架。在这里非常感谢猿题库团队casatwy做出的贡献。

kchartdemo's People

Contributors

dong1721 avatar

Watchers

 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.