Skip to content
项目

关于

An iOS stock chart view, K-Line, volume Line

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

StockChartView

A full customizable iOS stock chart view, K-Line, volume graph, with gesture supported.

Screenshots

BBStockchartView is used in project BBAltcoin in AppStore and Android. The iOS source is here.

Installation

Using CocoaPods

pod 'BBStockChartView', '~> 1.3'

Or add all files in folder "BBStockChartView" to your project. Done!

Usage

See the demo Xcode project for details

//init with any size, autolayout
_chartView = [[BBChartView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)];

//ChartView add area, area add series
Area* areaup = [[Area alloc] init];
Area* areadown = [[Area alloc] init];
BarSeries* bar = [[BarSeries alloc] init];
StockSeries* stock = [[StockSeries alloc] init];
[areaup addSeries:stock];
[areadown addSeries:bar];

// add data to bar and stock
// [stock addPoint:]
[self.chartView addArea:areaup];
[self.chartView addArea:areadown];
// two area's height ratio
[self.chartView setHeighRatio:0.3 forArea:areadown];

// set any color you like
[BBTheme theme].barBorderColor = [UIColor clearColor];
[BBTheme theme].xAxisFontSize = 11;

// begin to show the view animated
[self.chartView drawAnimated:YES];

Contributing

We'll love contributions, please report bugs in the issue tracker, create pull request (on branch develop) and suggest new great features (also in the issue tracker).

License

BBStockChartView available under the MIT license, so feel free to use it in commercial and non-commercial projects.

Author

Chen XiaoYu

探索相关项目

加载中…