TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jun 2017 |
Maintained by jasonye.
YzcChartView *chartView = [[YzcChartView alloc] initWithFrame:CGRectMake(10, 100, 350, 200) dataSource:self style:YzcChartStyleLine];
[chartView showInView:self.scrollView];
YzcChartView *chartView2 = [[YzcChartView alloc] initWithFrame:CGRectMake(10, 300, self.view.frame.size.width-30, 200) dataSource:self style:YzcChartStyleBar];
[chartView2 showInView:self.scrollView];
///横坐标标题数组
- (NSMutableArray *)chartConfigAxisXValue:(YzcChartView *)chart;
///数值数组
- (NSMutableArray *)chartConfigAxisYValue:(YzcChartView *)chart;
///显示数值范围
- (CGRange)chartRange:(YzcChartView *)chart;
/**
图表效果配置
@param chart chart
@return 配置model
*/
- (YzcConfigModel *)chartEffectConfig:(YzcChartView *)chart;
#pragma mark - 柱状图功能
- (NSInteger)barChartTargetValue:(YzcChartView *)chart;
/**
柱状图样式
@param chart chart
@return bool
*/
- (BarChartStyle)barChartStyle:(YzcChartView *)chart;
///左上角显示单位(未国际化)
@property (copy, nonatomic) NSString *unitString;
///是否显示左上角单位,默认隐藏
@property (nonatomic, assign) BOOL isHiddenUnit;
///最后一个数值是否显示在柱状上面,默认隐藏
@property (nonatomic, assign) BOOL isShowLastValue;
///横坐标显示间隔数
@property (nonatomic, assign) NSInteger intervalValue;
@property (nonatomic, strong) UIFont *textFont;