这里是下载地址
效果展示



示例代码:
lchart = [[LChartView alloc] init];
[lchart initWithFrame:CGRectMake(0, 0, _bkVWidth.constant, _bkVHeight.constant)
itemWidth:kItemSpace
leftLabelCount:5
bottomLabelCount:4
leftViewWidth:50
bottomViewHeight:25
isStock:YES
isGradient:YES
];
frame---整体坐标
itemWidth---每个点的宽度
leftLabelCount---左边坐标的个数
bottomLabelCount---底部坐标的个数,此处数据是虚假的,可根据实际情况自己更改
leftViewWidth---左边坐标视图的宽度
bottomViewHeight---底部坐标视图的高度
isStock---是否是k图,之后可以通过改变此属性来改变样式(k图,折线图)
isGradient---是否填充渐变色背景,只针对折线图有效果
网友评论