Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JunyiXie/XJYChart
iOS Chart. Support animation, click, scroll, area highlight.
https://github.com/JunyiXie/XJYChart
animation chart-framework slide touch
Last synced: 8 days ago
JSON representation
iOS Chart. Support animation, click, scroll, area highlight.
- Host: GitHub
- URL: https://github.com/JunyiXie/XJYChart
- Owner: JunyiXie
- License: mit
- Created: 2017-01-24T04:58:25.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-12-18T15:13:17.000Z (almost 5 years ago)
- Last Synced: 2024-12-01T10:02:39.373Z (11 days ago)
- Topics: animation, chart-framework, slide, touch
- Language: Objective-C
- Homepage:
- Size: 32.8 MB
- Stars: 871
- Watchers: 26
- Forks: 100
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - XJYChart - A Beautiful chart for iOS. Support animation, click, slide, area highlight. (Charts)
- awesome-ios-star - XJYChart - A Beautiful chart for iOS. Support animation, click, slide, area highlight. (Charts)
- fucking-awesome-ios - XJYChart - A Beautiful chart for iOS. Support animation, click, slide, area highlight. (Charts)
- fucking-awesome-ios - XJYChart - A Beautiful chart for iOS. Support animation, click, slide, area highlight. (Charts)
README
## XJYChart
[![Version](https://img.shields.io/cocoapods/v/XJYChart.svg?style=flat)](http://cocoapods.org/pods/XJYChart)
[![Platform](https://img.shields.io/cocoapods/p/XJYChart.svg?style=flat)](http://cocoapods.org/pods/XJYChart)
[![License](https://img.shields.io/cocoapods/l/XJYChart.svg?style=flat)](https://github.com/EyreFree/XJYChart/blob/master/LICENSE)> XJYChart - A High-performance, Elegant, Easy-to-integrate Charting Framework.
> The Best iOS Objc Charts.- [x] **chart more beautiful**
- [x] **support chart scroll**
- [x] **support chart area fill**
- [x] **support chart animation**
- [x] **support chart touch**
- [x] **support chart highlight**
## Installation
### CocoaPods
XJYChart is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod "XJYChart"
```Then, run the following command:
```bash
$ pod install
```## How to Use
**Qucikly Use**
Eg:
- [AreaLineExample](https://github.com/JunyiXie/XJYChart/blob/master/XJYChartDemo/XJYChartDemo/View/AreaLineTableViewCell.m)- [BarChartExample](https://github.com/JunyiXie/XJYChart/blob/master/XJYChartDemo/XJYChartDemo/View/BarChartCell.m)
- [CycleChartExample](https://github.com/JunyiXie/XJYChart/blob/master/XJYChartDemo/XJYChartDemo/View/CycleTableViewCell.m)
- [LineChartExample](https://github.com/JunyiXie/XJYChart/blob/master/XJYChartDemo/XJYChartDemo/View/LineChartCell.m)
- [PieChartExample](https://github.com/JunyiXie/XJYChart/blob/master/XJYChartDemo/XJYChartDemo/View/PieChartCell.m)
- [PositiveNegativeBarChartExample](https://github.com/JunyiXie/XJYChart/blob/master/XJYChartDemo/XJYChartDemo/View/PositiveNegativeBarChartCell.m)
- [StackAreaLineChartExample](https://github.com/JunyiXie/XJYChart/blob/master/XJYChartDemo/XJYChartDemo/View/StackAreaTableViewCell.m)
**Initialization**
```objectivec
- (instancetype)initWithFrame:(CGRect)frame
dataItemArray:(NSMutableArray*)dataItemArray
dataDiscribeArray:(NSMutableArray*)dataDiscribeArray
topNumber:(NSNumber*)topNumbser
bottomNumber:(NSNumber*)bottomNumber
graphMode:(XLineGraphMode)graphMode
chartConfiguration:(XLineChartConfiguration*)configuration;
```- frame: The frame rectangle for the view
- dataItemArray: data for lines
- topNumber: ordinate coordinate top number
- bottomNumber: ordinate bottom top number
- graphMode: which kind of line chart you want to use.eg: MutiLineGraph,AreaLineGraph,StackAreaLineGraph
- chartConfiguration: detail configuration for chart. like lineMode, shadow**Chart Data**
```objectivec
- (instancetype)initWithDataNumberArray:(NSMutableArray*)numberArray
color:(UIColor*)color;
```
- numberArray: values in line
- color: line fill color**Chart Configuration**
```objectivec
XNormalLineChartConfiguration* configuration =
[[XNormalLineChartConfiguration alloc] init];
configuration.lineMode = CurveLine;
configuration.isShowShadow = YES;
```## License
![](https://upload.wikimedia.org/wikipedia/commons/thumb/f/f8/License_icon-mit-88x31-2.svg/128px-License_icon-mit-88x31-2.svg.png)
XJYChart is available under the MIT license. See the LICENSE file for more info.