Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zyphs21/hsstockchart

Stock Chart include CandleStickChart,TimeLineChart. 股票走势图,包括 K 线图,分时图,手势缩放,拖动
https://github.com/zyphs21/hsstockchart

cashapelayer chart graphics stockchart swift4

Last synced: 7 days ago
JSON representation

Stock Chart include CandleStickChart,TimeLineChart. 股票走势图,包括 K 线图,分时图,手势缩放,拖动

Awesome Lists containing this project

README

        

# HSStockChart

[![Backers on Open Collective](https://opencollective.com/HSStockChart/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/HSStockChart/sponsors/badge.svg)](#sponsors) ![iOS 9.0+](https://img.shields.io/badge/iOS-9.0%2B-blue.svg) ![Swift 5.0](https://img.shields.io/badge/Swift-5.0-orange.svg)
![MIT](https://img.shields.io/github/license/mashape/apistatus.svg)

HSStockChart 是一个绘制股票分时图、K 线图的库。支持流畅的回弹拖动,长按十字线,捏合放大缩小等功能,主要使用了 CAShapeLayer 来绘图,相比使用 Core Graphics 和重写 drawRect 的方法更高效,占用内存更小。

![](https://github.com/zyphs21/HSStockChart/blob/master/DemoScreenshot/HSStockChart.gif)

## Features

- [x] 支持绘制分时图,五日分时图,K 线图,MA 线指标,交易量柱等。
- [x] 支持横屏查看。
- [x] K 线图利用 `UIScrollView` 达到流畅的滑动查看效果。
- [x] 使用 `CAShapeLayer` 绘图,内存占用更小,效率更高。

## Explain

[中文解释](README_Chinese.md)

## Requirements

- iOS 9.0+
- Swift 5

## Example

To run the example project, clone the repo, and run `pod install` from the Example directory first.

## Installation

HSStockChart is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:

```ruby
pod 'HSStockChart'
```

## Author

E-mail: [email protected]
Blog: [myhanson.com](www.myhanson.com)
Twitter: [Hanson,@yuanpingzhang](https://twitter.com/yuanpingzhang)
Instagram: [hansonhs21](https://www.instagram.com/hansonhs21/)
Facebook: [Hanson Zhang](https://www.facebook.com/zhang.yuanping.7)

## Contributors

This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].

## Backers

Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/HSStockChart#backer)]

## Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/HSStockChart#sponsor)]










## License

HSStockChart is available under the MIT license. See the LICENSE file for more info.