forked from Boris-Em/BEMSimpleLineGraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBEMAverageLine.h
More file actions
48 lines (28 loc) · 1.09 KB
/
BEMAverageLine.h
File metadata and controls
48 lines (28 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//
// BEMAverageLine.h
// SimpleLineChart
//
// Created by Sam Spencer on 4/7/15.
// Copyright (c) 2015 Boris Emorine. All rights reserved.
//
@import Foundation;
@import UIKit;
/// A line displayed horizontally across the graph at the average y-value
@interface BEMAverageLine : NSObject <NSCoding>
/// When set to YES, an average line will be displayed on the line graph
@property (nonatomic) BOOL enableAverageLine;
/// The color of the average line
@property (strong, nonatomic, nonnull) UIColor *color;
/// The Y-Value of the average line. This could be an average, a median, a mode, sum, etc.
@property (nonatomic) CGFloat yValue;
/// The alpha of the average line
@property (nonatomic) CGFloat alpha;
/// The width of the average line
@property (nonatomic) CGFloat width;
/// Dash pattern for the average line
@property (strong, nonatomic, nullable) NSArray <NSNumber *> *dashPattern;
//Label for average line in y axis. Default is blank.
@property (strong, nonatomic, nullable) NSString * title;
/// Title label on screen
@property (strong, nonatomic, nullable) UILabel *label;
@end