- Notifications
You must be signed in to change notification settings - Fork16
JTChartView is the new lightweight and fully customizable solution to draw a chart.
License
kubatruhlar/JTChartView
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
JTChartView is the newlightweight and fully customizable solution todraw a curve and fill the space underneath it with agradient. The result is abeautiful chart.
There are two ways to add theJTProgressHUD library to your project. Add it as a regular library or install it throughCocoaPods.
pod 'JTChartView'
You may also quick try the example project with
pod try JTChartView
Library requires target iOS 7.0 and above
Works in both - Portrait and Landscape modes
JTChartView is designed to be created in one initialization line of code. Core logic creates all layers and draws them into finalJTChartView. YouMUST create aparent view for thatJTChartView to keep it working correctly.
// Parent view (Whatever you need)UIView *baseChartView = [[UIViewalloc]initWithFrame:CGRectMake(30.0,30.0,self.view.frame.size.width -60.0,self.view.frame.size.width -60.0)];baseChartView.layer.masksToBounds =true;baseChartView.backgroundColor = [UIColorwhiteColor];// JTChartViewJTChartView *chartView = [[JTChartViewalloc]initWithFrame:baseChartView.boundsvalues:@[@15, @5, @10]curveColor:[UIColorgrayColor]curveWidth:5.0topGradientColor:[UIColorredColor]bottomGradientColor:[UIColororangeColor]minY:0.5maxY:1.0topPadding:10.0];[baseChartViewaddSubview:chartView];
This library is open-sourced byJakub Truhlar.
The MIT License (MIT)Copyright © 2015 Jakub Truhlar
About
JTChartView is the new lightweight and fully customizable solution to draw a chart.