XJYChart - A High-performance, Elegant, Easy-to-integrate Charting Framework.
XJYChart can give App more interactive, it supports touch, slide. Unlike other charting frameworks, XJYChart uses a component-based design that is very solid, giving XJYChart an easy iteration feature. Support the beautiful animation effect, have the perfect event response mechanism. And the performance is very good. Based on Core Animation. Easy to use, easy to modify. Elegant interface, smooth animation.
- LineChart
- BarChart
- PositiveNegativeBarChart
- PieChart
- CycleChart
- Animation
- Touch
- Scroll
- Beautiful
XJYChart is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "XJYChart"
Then, run the following command:
$ pod install
XXPositiveNegativeBarChart *barChart = [[XXPositiveNegativeBarChart alloc] initWithFrame:CGRectMake(0, 0, 375, 200) dataItemArray:itemArray topNumber:@100 bottomNumber:@(-170)];
- colorMode
+ lineMode
+ CurveLine
+ BrokenLine
- (instancetype)initWithFrame:(CGRect)frame dataItemArray:(NSMutableArray<XXLineChartItem *> *)dataItemArray dataDiscribeArray:(NSMutableArray<NSString *> *)dataDiscribeArray topNumber:(NSNumber *)topNumbser bottomNumber:(NSNumber *)bottomNumber;
- (instancetype)initWithDataNumberArray:(NSMutableArray *)numberArray color:(UIColor *)color dataDescribe:(NSString *)dataDescribe;
LineGraphMode: MutiLineGraph AreaLineGraph
XXLineChart *lineChart = [[XXLineChart alloc] initWithFrame:CGRectMake(0, 0, 375, 200) dataItemArray:itemArray dataDiscribeArray:[NSMutableArray arrayWithArray:@[@"January", @"February", @"March", @"April", @"May"]] topNumber:@200 bottomNumber:@0 graphMode:MutiLineGraph];
//XJYCycleView
- (instancetype)initWithFrame:(CGRect)frame;
XXBarChart *barChart = [[XXBarChart alloc] initWithFrame:CGRectMake(0, 0, 375, 200) dataItemArray:itemArray topNumber:@150 bottomNumber:@(0)];
- BarChartdelegate
- (void)touchBarAtIdx:(NSUInteger)idx;
self.pieChartView = [[XJYPieChart alloc] init];
NSMutableArray *pieItems = [[NSMutableArray alloc] init];
NSArray *colorArray = @[RGB(145, 235, 253), RGB(198, 255, 150), RGB(254, 248, 150), RGB(253, 210, 147)];
NSArray *dataArray = @[@"iPhone6",@"iPhone6 Plus",@"iPhone6s",@"其他"];
XJYPieItem *item1 = [[XJYPieItem alloc] initWithDataNumber:[NSNumber numberWithDouble:20.9] color:colorArray[0] dataDescribe:dataArray[0]];
[pieItems addObject:item1];
XJYPieItem *item2 = [[XJYPieItem alloc] initWithDataNumber:[NSNumber numberWithDouble:14.82] color:colorArray[1] dataDescribe:dataArray[1]];
[pieItems addObject:item2];
self.pieChartView.dataItemArray = pieItems;
Provide many colors In XJYColor.h ...
Added slippery graph And Chart Animations Example
+ .CurveLine
+ .AreaGraph
+ .StackAreaGraph
+ Add XJYCycleView
- touch
- gradient
Use XIB or Code
//XJYCycleView
- (instancetype)initWithFrame:(CGRect)frame;
- Clear abandoned API
+ Add The positive and negative Bar Chart**
XJYChart is available under the MIT license. See the LICENSE file for more info.