Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ffd12921a4 | |||
| ef2f02743f | |||
| 74d63d31e3 | |||
| 49c7bdee0c |
@@ -147,7 +147,17 @@ static UIColor *kJBBarChartViewDefaultBarColor = nil;
|
||||
barView.layer.shadowRadius = 1.0;
|
||||
|
||||
[mutableBarViews addObject:barView];
|
||||
[self insertSubview:barView belowSubview:self.footerView];
|
||||
|
||||
// Add new bar
|
||||
if (self.footerView)
|
||||
{
|
||||
[self insertSubview:barView belowSubview:self.footerView];
|
||||
}
|
||||
else
|
||||
{
|
||||
[self addSubview:barView];
|
||||
}
|
||||
|
||||
xOffset += ([self barWidth] + self.barPadding);
|
||||
index++;
|
||||
}
|
||||
@@ -158,6 +168,8 @@ static UIColor *kJBBarChartViewDefaultBarColor = nil;
|
||||
* Creates a vertical selection view for touch events
|
||||
*/
|
||||
dispatch_block_t createSelectionView = ^{
|
||||
|
||||
// Remove old selection bar
|
||||
if (self.selectionView)
|
||||
{
|
||||
[self.selectionView removeFromSuperview];
|
||||
@@ -170,7 +182,16 @@ static UIColor *kJBBarChartViewDefaultBarColor = nil;
|
||||
{
|
||||
self.selectionView.bgColor = [self.dataSource selectionBarColorForBarChartView:self];
|
||||
}
|
||||
[self insertSubview:self.selectionView belowSubview:self.footerView];
|
||||
|
||||
// Add new selection bar
|
||||
if (self.footerView)
|
||||
{
|
||||
[self insertSubview:self.selectionView belowSubview:self.footerView];
|
||||
}
|
||||
else
|
||||
{
|
||||
[self addSubview:self.selectionView];
|
||||
}
|
||||
};
|
||||
|
||||
createDataDictionaries();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Pod::Spec.new do |s|
|
||||
s.name = "JBChartView"
|
||||
s.version = "1.0"
|
||||
s.version = "1.0.1"
|
||||
s.summary = "Jawbone's iOS-based charting library for both line and bar graphs."
|
||||
s.homepage = "https://github.com/Jawbone/JBChartView"
|
||||
|
||||
@@ -8,7 +8,7 @@ Pod::Spec.new do |s|
|
||||
s.author = { "Terry Worona" => "tworona@jawbone.com" }
|
||||
s.source = {
|
||||
:git => "https://github.com/Jawbone/JBChartView.git",
|
||||
:tag => "v1.0"
|
||||
:tag => "v1.0.1"
|
||||
}
|
||||
|
||||
s.platform = :ios, '7.0'
|
||||
|
||||
Reference in New Issue
Block a user