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.

64 lines
1.2 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;
/// 画与 X轴 平行的网格线
- (void)drawXGridline;
/// 与 Y轴 平行的网格线
- (void)drawYGridline;
@end