CCSLineChart Class Reference
Inherits from | CCSGridChart : CCSBaseChartView : UIControl |
Declared in | CCSLineChart.h CCSLineChart.m |
Overview
CCSLineChart
CCSLineChart is a kind of graph that draw some lines on a CCSGridChart
CCSLineChartはCCSGridChartの表面でラインを書いたラインチャードです。
CCSLineChart是在CCSGridChart上绘制一条或多条线条的图
Tasks
Other Methods
-
linesData
Data for display data
property
ラインを表示用データ
表示线条用的数据 -
latitudeNum
Number of latitude lines
property
显示纬线数 -
longitudeNum
Number of longitude lines
property
显示经线数 -
selectedIndex
Selected data’s index
property
选中的方柱位置 -
lineWidth
Displayed line’s width
property
ラインのサイズ
线宽 -
maxValue
Max display value of axis Y
property
Y軸の最大値
Y轴显示最大值 -
minValue
Min display value of axis Y
property
Y軸の最小値
Y轴显示最小值 -
– drawData:
Draw lines to this graph
ラインデータを使いてラインを書く
使用数据绘制线条 -
– initAxisX
Init X axis degrees
初期化X軸の目盛
初始化X轴的刻度 -
– initAxisY
Init Y axis degrees
初期化Y軸の目盛
初始化Y轴的刻度
Other Methods
-
– initProperty
@abstract
Initialize This Object’s Properties
オブジェクトのプロパティを初期化
初始化当前对象的属性 -
– calcAxisXGraduate:
calculate the x axis display degrees of touched point
経度数の表示目盛りを計算する。
计算经度的表示刻度 -
– calcAxisYGraduate:
calculate the y axis display degrees of touched point
緯度数の表示目盛りを計算する。
计算纬度的表示刻度
Properties
latitudeNum
Number of latitude lines
显示纬线数
@property (assign, nonatomic) NSUInteger latitudeNum
Discussion
Number of latitude lines
显示纬线数
Declared In
CCSLineChart.h
lineWidth
Displayed line’s width
ラインのサイズ
线宽
@property (assign, nonatomic) CGFloat lineWidth
Discussion
Displayed line’s width
ラインのサイズ
线宽
Declared In
CCSLineChart.h
linesData
Data for display data
ラインを表示用データ
表示线条用的数据
@property (retain, nonatomic) NSArray *linesData
Discussion
Data for display data
ラインを表示用データ
表示线条用的数据
Declared In
CCSLineChart.h
longitudeNum
Number of longitude lines
显示经线数
@property (assign, nonatomic) NSUInteger longitudeNum
Discussion
Number of longitude lines
显示经线数
Declared In
CCSLineChart.h
maxValue
Max display value of axis Y
Y軸の最大値
Y轴显示最大值
@property (assign, nonatomic) CGFloat maxValue
Discussion
Max display value of axis Y
Y軸の最大値
Y轴显示最大值
Declared In
CCSLineChart.h
Instance Methods
calcAxisXGraduate:
calculate the x axis display degrees of touched point
経度数の表示目盛りを計算する。
计算经度的表示刻度
- (NSString *)calcAxisXGraduate:(CGRect)rect
Parameters
- rect
the rect of the grid
グリドのrect
图表的rect
Return Value
NSString * the calculated value
計算出した目盛り
刻度结果
Declared In
CCSGridChart.h
calcAxisYGraduate:
calculate the y axis display degrees of touched point
緯度数の表示目盛りを計算する。
计算纬度的表示刻度
- (NSString *)calcAxisYGraduate:(CGRect)rect
Parameters
- rect
the rect of the grid
グリドのrect
图表的rect
Return Value
NSString * the calculated value
計算出した目盛り
刻度结果
Declared In
CCSGridChart.h