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.

81 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