Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Classes/BEMSimpleLineGraphView.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
@protocol BEMSimpleLineGraphDelegate;
@protocol BEMSimpleLineGraphDataSource;

static const float BEMDefaultAnimationTime = 1.5f;

/// Simple line graph / chart UIView subclass for iOS apps. Creates beautiful line graphs (without huge memory impacts) using QuartzCore.
@interface BEMSimpleLineGraphView : UIView <UIGestureRecognizerDelegate>

Expand Down
4 changes: 3 additions & 1 deletion Classes/BEMSimpleLineGraphView.m
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ - (void)commonInit {
_labelFont = [UIFont fontWithName:DEFAULT_FONT_NAME size:13];

// Set Animation Values
_animationGraphEntranceTime = 1.5;
_animationGraphEntranceTime = BEMDefaultAnimationTime;

// Set Color Values
_colorXaxisLabel = [UIColor blackColor];
Expand Down Expand Up @@ -875,6 +875,8 @@ - (void)setAnimationGraphStyle:(BEMLineAnimation)animationGraphStyle
_animationGraphStyle = animationGraphStyle;
if (_animationGraphStyle == BEMLineAnimationNone)
self.animationGraphEntranceTime = 0.f;
else
self.animationGraphEntranceTime = BEMDefaultAnimationTime;
}


Expand Down