You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
1.9 KiB
80 lines
1.9 KiB
// |
|
// FBYLineGraphView.h |
|
// FBYDataDisplay-iOS |
|
// |
|
// Created by fby on 2018/1/18. |
|
// Copyright © 2018年 FBYDataDisplay-iOS. All rights reserved. |
|
// |
|
|
|
#import <UIKit/UIKit.h> |
|
|
|
@interface FBYLineGraphView : UIView |
|
|
|
/// 主题色 |
|
@property (nonatomic, strong) UIColor *MainColor; |
|
/** |
|
* 表名 |
|
*/ |
|
@property (nonatomic, strong) NSString *title; |
|
|
|
/// X 轴的 单位名称 |
|
@property (nonatomic, strong) NSString *X_UnintTitle; |
|
|
|
/// XY 轴的颜色 |
|
@property (nonatomic, strong) UIColor *XYAxisColor; |
|
|
|
/** |
|
* Y轴最大值 |
|
*/ |
|
@property (nonatomic, assign) CGFloat maxValue; |
|
|
|
/** |
|
* Y轴最小值 |
|
*/ |
|
@property (nonatomic, assign) CGFloat minValue; |
|
|
|
|
|
/** |
|
* Y轴分割个数(包含0在内的) |
|
*/ |
|
@property (nonatomic, assign) int Ycount; |
|
|
|
/// Y轴显示的 上限 线 值 |
|
@property (nonatomic, assign) CGFloat upperValue; |
|
/// Y轴显示的 下限 线 值 |
|
@property (nonatomic, assign) CGFloat lowerValue; |
|
|
|
/** |
|
* X轴刻度标签的长度(单位长度) |
|
*/ |
|
@property (nonatomic, assign) CGFloat xScaleMarkLEN; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
* 设置折线图显示的数据和对应X坐标轴刻度标签 (时间戳 24小时制) |
|
* |
|
* @param xMarkTitlesTimeAndValues 折线图显示的数据 |
|
* @param titleKey 标签(如:1585817374 时间戳) |
|
* @param valueKey 数据 (如:80) |
|
* @param day 哪一天 |
|
*/ |
|
- (void)setXMarkWithDay:(NSString*)day TitlesTimeAndValues:(NSArray *)xMarkTitlesTimeAndValues titleKey:(NSString *)titleKey valueKey:(NSString *)valueKey; |
|
|
|
|
|
/** |
|
* 设置折线图显示的数据和对应X坐标轴刻度标签 (日期 eg: 2020-04-02 日期制) |
|
* |
|
* @param xMarkTitlesFDayAndValues 折线图显示的数据 |
|
* @param titleKey 标签(日期 eg: 2020-04-02) |
|
* @param valueKey 数据 (如:80) |
|
*/ |
|
- (void)setXMarkTitlesDayAndValues:(NSArray *)xMarkTitlesFDayAndValues titleKey:(NSString *)titleKey valueKey:(NSString *)valueKey; |
|
|
|
- (void)mapping; |
|
|
|
- (void)reloadDatas; |
|
|
|
@end
|
|
|