# LineShow **Repository Path**: sunroad/LineShow ## Basic Information - **Project Name**: LineShow - **Description**: 模仿DailyConst里面的曲线展示一个星期支出情况 - **Primary Language**: Objective-C - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2015-06-28 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## LineShow ### 1.运行界面图 ![](screenImage/screen1.png) ### 2.使用方法 1.UIViewController 添加代理Alu_LineShowViewDeletage,Alu_LineShowViewDataSourceDelegate 2.设置UIView的代理对象 ``` bash self.view.delegate = self; //Alu_LineShowViewDeletage self.view.deletageSource = self; //Alu_LineShowViewDataSourceDelegate ``` 3.实现代理方法: Alu_LineShowViewDelegate ``` code - (UIColor*)lineShowLineColor 设置显示的线条颜色 - (NSInteger)lineShowLineWidth 设置显示线条的宽度 - (UIColor*)lineShowPointColor 设置显示的点的颜色 - (UIColor*)lineShowPointDefualtColor 设置背景线条的颜色 - (CGFloat)lineShowPointRadius 设置显示点的半径 - (UIFont*)lineShowTitleFont 设置底下x坐标方向的字体格式 ``` Alu_LineShowViewDetegateSource ``` code - (NSInteger)lineShowPointCount 设置显示的点个数 - (NSInteger)lineShowEndPoint 设置绘制线条到最后的点下标 - (BOOL)lineShowNeedShowPointInIndex:(NSInteger)index 设置是否需要绘制点 - (CGFloat)lineShowValueInIndex:(NSInteger)index 设置点的y方向的值 - (NSString*)lineShowTitleInIndex:(NSInteger)index 设置x方向下的字的内容 ``` ​