Skip to content

ZHLineChart,一款轻便可自定义的折线图控件。支持风格、内容、颜色、文本、排版等自定义设置,轻便简洁!

Notifications You must be signed in to change notification settings

vitasapple/ZHLineChart

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZHLineChart

ZHLineChart,一款轻便可自定义的折线图。支持风格、内容、颜色、文本、排版等自定义设置,轻便简洁!

详细文章

更多了解可以查看:简书文章

预览

ZHLineChart ZHLineChart ZHLineChart ZHLineChart ZHLineChart

使用示例

开始绘制
[self.lineView drawLineChart];
- (ZHLineChartView *)lineView
{
    if (!_lineView) {
        _lineView = [[ZHLineChartView alloc] initWithFrame:CGRectMake(0, 10, CGRectGetWidth(self.view.frame), 200)];
        _lineView.max = @600;
        _lineView.min = @300;
        _lineView.horizontalDataArr = @[@"2020-02", @"2020-03", @"2020-04", @"2020-05", @"2020-06", @"2020-07"];
        _lineView.lineDataAry = @[@502, @523, @482, @455, @473, @546];
        _lineView.splitCount = 3;
        _lineView.toCenter = NO;
        _lineView.edge = UIEdgeInsetsMake(25, 15, 50, 25);
        _lineView.backgroundColor = [UIColor whiteColor];
        [self.scrollView addSubview:_lineView];
    }
    return _lineView;
}

意见建议

如果感觉此项目对你有帮助,欢迎Star!如果使用过程中遇到问题或者有更好的建议,欢迎在Issues提出!

About

ZHLineChart,一款轻便可自定义的折线图控件。支持风格、内容、颜色、文本、排版等自定义设置,轻便简洁!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 100.0%