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.
 
 
 
 

72 lines
1.3 KiB

//
// FBYLineGraphBaseView.h
// FBYDataDisplay-iOS
//
// Created by fby on 2018/1/18.
// Copyright © 2018年 FBYDataDisplay-iOS. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface FBYLineGraphBaseView : UIView
/// 图表格式 0: 时间(24小时) 1: 日期(7天)
@property (nonatomic, assign) int chartType;
/// XY 轴的颜色
@property (nonatomic, strong) UIColor *XYAxisColor;
/// XY 轴的样式 0: 实线(默认) 1:虚线
@property (nonatomic, assign) int XYAxisStyle;
/**
* Y轴刻度标签
*/
@property (nonatomic, strong) NSArray *yMarkTitles;
/// X轴的 刻度数组 (根据方法需要修改成 24小时的 还是 日期制的)
@property (nonatomic, strong) NSMutableArray *xMarkScaleArr;
/**
* 与y轴平行的网格线的间距
*/
@property (nonatomic, assign) CGFloat xScaleMarkLEN;
/**
* 网格线的起始点
*/
@property (nonatomic, assign) CGPoint startPoint;
/**
* y 轴长度
*/
@property (nonatomic, assign) CGFloat yAxis_L;
/**
* x 轴长度
*/
@property (nonatomic, assign) CGFloat xAxis_L;
/**
* 绘图
*/
- (void)mapping;
/**
* 更新做标注数据
*/
- (void)reloadDatas;
/**
* 绘图
*/
- (void)mapping1;
/**
* 更新做标注数据
*/
- (void)reloadDatas1;
/// 画与 X轴 平行的网格线
- (void)drawXGridline;
/// 与 Y轴 平行的网格线
- (void)drawYGridline;
@end