Simple and intuitive iOS chart library, for the upcoming Pomotodo app. Contribution graph, clock chart, and bar chart.
Supports Storyboard.
See the header files for complete documents.
The contribution graph mimics the GitHub one. Currently lacks of customization options.
// This sample uses Storyboard
@property (weak, nonatomic) IBOutlet TEAContributionGraph *contributionGraph;
self.contributionGraph.width = 12;
self.contributionGraph.spacing = 6;
self.contributionGraph.data = @[@3, @1, @4, @1, @1, @4, @1, @5, @0, @5, @6, @3, @1, @4, @1, @5, @9, @2, @6, @0, @2, @6, @3, @2, @3, @1, @4, @1, @5, @9];
// This sample uses Storyboard
@property (weak, nonatomic) IBOutlet TEAClockChart *clockChart;
self.clockChart.data = @[
[TEATimeRange timeRangeWithStart:[NSDate date] end:[NSDate dateWithTimeIntervalSinceNow:3600]],
// ...
];
Just a bar chart, no label, no interaction, no animation.
#import "TEAChart.h"
TEABarChart *barChart = [[TEABarChart alloc] initWithFrame:CGRectMake(20, 20, 100, 40)];
barChart.data = @[@2, @7, @1, @8, @2, @8];
[self.view addSubview:barChart];
Use CocoaPods:
pod 'TEAChart'
Or drag TEAChart folder into your project.
Pull requests are welcome! If you want to do something big, please open an issue first.
MIT