TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Oct 2015 |
Maintained by Simon Nickel.
SNLWeekChartView is a wrapper to easily create a JBChartView representing a week. Just layout your SNLWeekChartView in your storyboard and style it using IB_DESIGNABLE. Set your values in your ViewController and you are done.
To run the example project, clone the repo, and run pod install
from the Example directory first.
SNLWeekChartView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "SNLWeekChartView", "~> 1.1.0"
To use it in your project:
- (void)viewDidLoad
{
[super viewDidLoad];
self.weekView.values = @[@(1), @(2), @(0), @(1), @(3), @(1)];
}
You can set the colors (background, chart, value label, weekday label [past, current, future]) and fonts (value label, weekday label [past, current, future]) in storyboard or by settings their properties in your ViewController.
You can set the padding between bars with dynamic padding classes (weekView.paddingWidth = ChartWeekPaddingWidthDefault, not supported in storyboard) or a fixed value (weekView.paddingValue). Padding can be applied on the outside of the view (paddingAppliedOnOutside).
You can ...
Simon Nickel, [email protected], @simonnickel
SNLWeekChartView is available under the MIT license. See the LICENSE file for more info.