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
    Y軸の最大値
    Y轴显示最大值

    property
  •   minValue

    Min display value of axis Y
    Y軸の最小値
    Y轴显示最小值

    property
  • – 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

minValue

Min display value of axis Y
Y軸の最小値
Y轴显示最小值

@property (assign, nonatomic) CGFloat minValue

Discussion

Min display value of axis Y
Y軸の最小値
Y轴显示最小值

Declared In

CCSLineChart.h

selectedIndex

Selected data’s index
选中的方柱位置

@property (assign, nonatomic) NSUInteger selectedIndex

Discussion

Selected data’s index
选中的方柱位置

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

drawData:

Draw lines to this graph
ラインデータを使いてラインを書く
使用数据绘制线条

- (void)drawData:(CGRect)rect

Parameters

rect

the rect of the grid
グリドのrect
图表的rect

Declared In

CCSLineChart.h

initAxisX

Init X axis degrees
初期化X軸の目盛
初始化X轴的刻度

- (void)initAxisX

Declared In

CCSLineChart.h

initAxisY

Init Y axis degrees
初期化Y軸の目盛
初始化Y轴的刻度

- (void)initAxisY

Declared In

CCSLineChart.h

initProperty

@abstract
Initialize This Object’s Properties
オブジェクトのプロパティを初期化
初始化当前对象的属性

- (void)initProperty

Discussion

@abstract
Initialize This Object’s Properties
オブジェクトのプロパティを初期化
初始化当前对象的属性

Declared In

CCSBaseChartView.h