1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- //
- // DVYBarView.h
- // xxxxx
- //
- // Created by Fire on 15/11/11.
- // Copyright © 2015年 DuoLaiDian. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- @interface DVYBarView : UIView
- /**
- * y轴的最大值
- */
- @property (assign, nonatomic) CGFloat yAxisMaxValue;
- /**
- * y轴分为几段
- */
- @property (assign, nonatomic) int numberOfYAxisElements;
- /**
- * x轴文字与坐标轴间隙
- */
- @property (assign, nonatomic) CGFloat xAxisTextGap;
- /**
- * y轴文字与坐标轴间隙
- */
- @property (assign, nonatomic) CGFloat yAxisTextGap;
- /**
- * 文字大小
- */
- @property (strong, nonatomic) UIFont *textFont;
- /**
- * 文字颜色
- */
- @property (strong, nonatomic) UIColor *textColor;
- /**
- * 坐标轴颜色
- */
- @property (strong, nonatomic) UIColor *axisColor;
- /**
- * 是否添加百分号
- */
- @property (assign, nonatomic, getter=isPercent) BOOL percent;
- /**
- * 视图的背景颜色
- */
- @property (strong, nonatomic) UIColor *backColor;
- /**
- * 柱的宽度
- */
- @property (assign, nonatomic) CGFloat barWidth;
- /**
- * 是否横屏
- */
- @property (assign,nonatomic,getter=isLandspace) BOOL landspace;
- /**
- * 图例名称 1
- */
- @property (strong,nonatomic) NSString *legendTitle1;
- /**
- * 图例名称 2
- */
- @property (strong,nonatomic) NSString *legendTitle2;
- /**
- * 图例颜色1
- */
- @property (strong,nonatomic) UIColor *legendColor1;
- /**
- * 图例颜色 2
- */
- @property (strong,nonatomic) UIColor *legendColor2;
- - (void)draw;
- @end
|