Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Commit

Permalink
add color property of the pop up label
Browse files Browse the repository at this point in the history
  • Loading branch information
iCell committed Nov 4, 2016
1 parent 731a455 commit 64f5ce6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Classes/BEMSimpleLineGraphView.h
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,9 @@ IB_DESIGNABLE @interface BEMSimpleLineGraphView : UIView <UIGestureRecognizerDel
/// Color of the pop up label's background displayed when the user touches the graph.
@property (strong, nonatomic) UIColor *colorBackgroundPopUplabel;

/// Color of the pop up label's text displayed when the user touches the graph.
@property (strong, nonatomic) UIColor *colorTextPopUpLabel;


/// Position of the y-Axis in relation to the chart (Default: NO)
@property (nonatomic) BOOL positionYAxisRight;
Expand Down
2 changes: 2 additions & 0 deletions Classes/BEMSimpleLineGraphView.m
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ - (void)commonInit {
_colorPoint = [UIColor colorWithWhite:1.0 alpha:0.7];
_colorTouchInputLine = [UIColor grayColor];
_colorBackgroundPopUplabel = [UIColor whiteColor];
_colorTextPopUpLabel = [UIColor darkTextColor];
_alphaTouchInputLine = 0.2;
_widthTouchInputLine = 1.0;
_colorBackgroundXaxis = nil;
Expand Down Expand Up @@ -375,6 +376,7 @@ - (void)layoutTouchReport {
self.popUpLabel.text = mString;
self.popUpLabel.textAlignment = 1;
self.popUpLabel.numberOfLines = 1;
self.popUpLabel.textColor = self.colorTextPopUpLabel;
self.popUpLabel.font = self.labelFont;
self.popUpLabel.backgroundColor = [UIColor clearColor];
[self.popUpLabel sizeToFit];
Expand Down

0 comments on commit 64f5ce6

Please sign in to comment.