酷店

SSWLineChartView.h 876B

123456789101112131415161718192021222324
  1. //
  2. // SSWLineChartView.h
  3. // SSWCharts
  4. //
  5. // Created by WangShaoShuai on 2018/5/3.
  6. // Copyright © 2018年 com.sswang.www. All rights reserved.
  7. //
  8. #import "SSWCharts.h"
  9. @interface SSWLineChartView : SSWCharts
  10. @property(nonatomic)NSMutableArray *xValuesArr;//x轴的值数组
  11. @property(nonatomic)NSMutableArray *yValuesArr;//y轴的值数组
  12. @property(nonatomic,assign)CGFloat barWidth;//x轴刻度占据的宽度
  13. @property(nonatomic,assign)CGFloat gapWidth;//间隔宽度
  14. @property(nonatomic,assign)CGFloat yScaleValue;//y轴的刻度值
  15. @property(nonatomic,assign)int yAxisCount;//y轴刻度的个数
  16. @property(nonatomic,copy)NSString *unit;//单位
  17. @property(nonatomic)UIColor *lineColor;//设置线的颜色
  18. @property(nonatomic,copy)void(^changeBtn)(UIButton * button);
  19. -(void)drawLineChart;
  20. -(void)draWUpdate;
  21. @end