Simple and intuitive iOS chart library. Contribution graph, clock chart, and bar chart.
Pull request Compare This branch is 55 commits behind xhacker:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
TEAChart
TEAChartDemo.xcodeproj
TEAChartDemo
TEAChartDemoTests
.gitignore
LICENSE
README.md
TEAChart.podspec

README.md

TEAChart

Simple and intuitive iOS chart library, for the upcoming Pomotodo app. Contribution graph, clock chart, and bar chart.

Supports Storyboard.

Usage

See the header files for complete documents.

Contribution Graph

Contribution Graph

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];

Clock Chart

Clock Chart

// This sample uses Storyboard
@property (weak, nonatomic) IBOutlet TEAClockChart *clockChart;

self.clockChart.data = @[
    [TEATimeRange timeRangeWithStart:[NSDate date] end:[NSDate dateWithTimeIntervalSinceNow:3600]],
    // ...
];

Bar Chart

Bar Chart

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];

Installation

Use CocoaPods:

pod 'TEAChart'

Or drag TEAChart folder into your project.

Contribution

Pull requests are welcome! If you want to do something big, please open an issue first.

License

MIT