Skip to content
forked from xhacker/TEAChart

Simple and intuitive iOS chart library. Contribution graph, clock chart, and bar chart.

License

Notifications You must be signed in to change notification settings

TeaWhen/TEAChart

 
 

Repository files navigation

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

About

Simple and intuitive iOS chart library. Contribution graph, clock chart, and bar chart.

Resources

License

Stars

Watchers

Forks

Packages

No packages published