ANDLineChartView

by anaglik

ANDLineChartView is easy to use view-based class for displaying animated line chart.

421 Stars 57 Forks Last release: Not found MIT License 20 Commits 5 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

ANDLineChartView for iOS

ANDLineChartView is easy to use view-based class for displaying animated line chart.

Usage

API is simple. Just implement following data source methods:

- (NSUInteger)numberOfElementsInChartView:(ANDLineChartView *)chartView;
- (CGFloat)chartView:(ANDLineChartView *)chartView valueForElementAtRow:(NSUInteger)row;

  • (NSUInteger)numberOfGridIntervalsInChartView:(ANDLineChartView *)chartView;

  • (NSString*)chartView:(ANDLineChartView *)chartView descriptionForGridIntervalValue:(CGFloat)interval;

  • (CGFloat)maxValueForGridIntervalInChartView:(ANDLineChartView *)chartView;

  • (CGFloat)minValueForGridIntervalInChartView:(ANDLineChartView *)chartView;

You can also specify spacing between elements in chart by implementing optional delegate method :

objective-c
  • (CGFloat)chartView:(ANDLineChartView *)chartView spacingForElementAtRow:(NSUInteger)row

  • Font and colors are customizable through class properties.

    To run the example project, just clone repo and open ANDLineChartView.xcworkspace .

    Screenshot

    Alt text

    Requirements

    iOS7 or later

    Installation

    ANDLineChartView is available through CocoaPods. To install it, simply add the following line to your Podfile:

    pod "ANDLineChartView"

    Author

    Andrzej Naglik, [email protected]

    License

    ANDLineChartView is available under the MIT license. See the LICENSE file for more info.

    We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.