chart.axis
Files
Axis 를 관리하는 클래스
- x 축
- y 축
- area { x, y, width, height}
- data Axis 에 적용될 데이타
Config options
set area(x, y, width, height) of axis
Defaults to: {}
Limits the number of elements shown on a chart.
Defaults to: 10000
Sets a grid on the C axis (see the grid tab).
Defaults to: null
Sets the row set data which constitute a chart.
Defaults to: []
Configures the index of an applicable grid group when intending to use already configured axis options.
Defaults to: null
[Fore read only] Original data initially set.
Defaults to: []
axis padding
Defaults to: {top: 0, bottom: 0, left: 0, right: 0}
- top : Number (optional)
axis's top padding
Defaults to:
0
- bottom : Number (optional)
axis's bottom padding
Defaults to:
0
- left : Number (optional)
axis's left padding
Defaults to:
0
- right : Number (optional)
axis's right padding
Defaults to:
0
Page number of the data currently drawn.
Defaults to: 1
Set perspective values in the 3d chart
Defaults to: 0.9
Data shift count for the 'prev' or 'next' method of the chart builder.
Defaults to: 1
Sets a grid on the X axis (see the grid tab).
Defaults to: null
Sets a grid on the Y axis (see the grid tab).
Defaults to: null
Properties
Limits the number of elements shown on a chart.
Defaults to: 10000
Sets the row set data which constitute a chart.
Defaults to: []
[For read only] End index of the data currently drawn.
Defaults to: 0
[For read only] Original data initially set.
Defaults to: []
[For read only] Page number of the data currently drawn.
Defaults to: 1
Data shift count for the 'prev' or 'next' method of the chart builder.
Defaults to: 1
[For read only] Start index of the data currently drawn.
Defaults to: 0
Sets a grid on the X axis (see the grid tab).
Defaults to: null
Methods
Gets the top, bottom, left and right margin values.
Parameters
- key : "top"/"left"/"bottom"/"right"
Returns
- Number/Object
Axis 의 표시 영역을 리턴한다.
Parameters
- key : "x"/"y"/"width"/'height"/null
area's key
Returns
- Number/Object
key 가 있으면 해당 key 의 value 를 리턴한다. 없으면 전체 area 객체를 리턴한다.
특정 필드의 값을 맵핑해서 가지고 온다.
Parameters
- data : Object
row data
- fieldString : String
필드 이름
- defaultValue : String/Number/Boolean/Object (optional)
기본값
Defaults to:
''
Returns
- Mixed
Axis 의 x,y,z 축을 다시 생성한다. * *
Parameters
- options : Object
axis의 주요 프로퍼티를 업데이트한다.
Parameters
- type : "x"/"y"/"c"/"map"/"degree"/"padding"
- grid : Object
This method has been deprecated
grid 정보를 업데이트 한다.
Parameters
- type : "x"/"y"/"c"/"map"
- grid : Object
특정 인덱스의 영역으로 데이타를 다시 맞춘다.
Parameters
- start : Number
- end : Number