Compare commits

..

4 Commits

Author SHA1 Message Date
terryworona 0b603cde1f Fixes #201 2016-02-29 14:55:15 -08:00
terryworona eacc211dbd Updated changelog and pod spec 2016-02-25 16:46:29 -08:00
terryworona 641fb7f5fa Fixed bar reloadDataAnimated: crash & non animated performance issues 2016-02-25 16:45:13 -08:00
terryworona 28a660c57f Updated pod spec and change log 2016-01-21 13:29:58 -08:00
4 changed files with 25 additions and 12 deletions
+12
View File
@@ -1,5 +1,17 @@
# Change Log
## [Unreleased](https://github.com/Jawbone/JBChartView/tree/HEAD)
[Full Changelog](https://github.com/Jawbone/JBChartView/compare/v3.0.6...HEAD)
**Closed issues:**
- Directions not set in UIViewController [\#199](https://github.com/Jawbone/JBChartView/issues/199)
- Many Line Charts in Table View [\#198](https://github.com/Jawbone/JBChartView/issues/198)
## [v3.0.6](https://github.com/Jawbone/JBChartView/tree/v3.0.6) (2016-01-21)
[Full Changelog](https://github.com/Jawbone/JBChartView/compare/v3.0.5...v3.0.6)
## [v3.0.5](https://github.com/Jawbone/JBChartView/tree/v3.0.5) (2016-01-20)
[Full Changelog](https://github.com/Jawbone/JBChartView/compare/v3.0.4...v3.0.5)
+4
View File
@@ -111,6 +111,10 @@ static UIColor *kJBBarChartViewDefaultBarColor = nil;
- (void)construct
{
_chartData = [NSArray array];
_barViews = [NSArray array];
_cachedBarViewHeights = [NSArray array];
_showsVerticalSelection = YES;
_cachedMinHeight = kJBBarChartViewUndefinedCachedHeight;
_cachedMaxHeight = kJBBarChartViewUndefinedCachedHeight;
+2 -2
View File
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "JBChartView"
s.version = "3.0.5"
s.version = "3.0.7"
s.summary = "Jawbone's iOS-based charting library for both line and bar graphs."
s.homepage = "https://github.com/Jawbone/JBChartView"
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
s.author = { "Terry Worona" => "tworona@jawbone.com" }
s.source = {
:git => "https://github.com/Jawbone/JBChartView.git",
:tag => "v3.0.5"
:tag => "v3.0.7"
}
s.platform = :ios, '6.0'
@@ -205,18 +205,15 @@ NSString * const kJBBarChartViewControllerNavButtonViewKey = @"view";
- (void)chartToggleButtonPressed:(id)sender
{
int randomNumber = (-3) + rand() % (3-(-3));
UIView *buttonImageView = [self.navigationItem.rightBarButtonItem valueForKey:kJBBarChartViewControllerNavButtonViewKey];
buttonImageView.userInteractionEnabled = NO;
NSMutableArray *mutableChartData = [NSMutableArray array];
for (int i=0; i<(kJBBarChartViewControllerNumBars + randomNumber ); i++)
{
NSInteger delta = ((kJBBarChartViewControllerNumBars + randomNumber) - labs(((kJBBarChartViewControllerNumBars + randomNumber) - i) - i)) + 2;
[mutableChartData addObject:[NSNumber numberWithFloat:MAX((delta * kJBBarChartViewControllerMinBarHeight), arc4random() % (delta * kJBBarChartViewControllerMaxBarHeight))]];
}
self.chartData = [NSArray arrayWithArray:mutableChartData];
CGAffineTransform transform = self.barChartView.state == JBChartViewStateExpanded ? CGAffineTransformMakeRotation(M_PI) : CGAffineTransformMakeRotation(0);
buttonImageView.transform = transform;
[self.barChartView reloadDataAnimated:YES];
[self.barChartView setState:self.barChartView.state == JBChartViewStateExpanded ? JBChartViewStateCollapsed : JBChartViewStateExpanded animated:YES callback:^{
buttonImageView.userInteractionEnabled = YES;
}];
}
#pragma mark - Overrides