chart.grid.rule
Hierarchy
chart.drawchart.grid.corechart.grid.ruleFiles
Config options
Place the reference axis in the middle.
Defaults to: false
max 나 min 을 넘어가는 값에 대한 체크, true 이면 넘어가는 값도 min, max 에서 조정, false 이면 비율로 계산해서 넘어가는 값 적용
Defaults to: true
Specifies the color of a grid.
Defaults to: null
Able to change the locatn of an axis.
Defaults to: 0
Sets the value displayed on an axis.
Defaults to: null
Determines whether to format the value on an axis.
Defaults to: null
Determines whether to display an applicable grid.
Defaults to: false
Determines whether to show text across the grid.
Defaults to: false
Determines whether to show '0' displayed on the grid.
Defaults to: false
Determines whether to image the value on an axis.
Defaults to: null
Sets the value on the grid to the value for the specified key.
Defaults to: null
Automatically sets the value of a specific section.
Defaults to: false
Specifies the direction in which an axis is shown (top, bottom, left or right).
Defaults to: null
Reverses the value on domain values
Defaults to: false
Sets the interval of the scale displayed on a grid.
Defaults to: 10
Specifies the slope of text displayed on a grid.
Defaults to: null
Specifies the text shown on a grid.
Defaults to: null
Specifies the type of a widget/brush/grid to be added.
Defaults to: null
Multiplies the axis value to be displayed.
Defaults to: null
Methods
말풍선 그리그 메소드
Parameters
- type : String
- w : Number
- h : Number
- anchor : Number
Returns
- String
grid 에서 color 를 위한 유틸리티 함수
Parameters
- theme : Object
Returns
- Mixed
implements animate code after draw object
Get a default format callback of draw object.
Returns
- Function
get real size of grid
Parameters
- chart : chart.builder
- orient : Strng
- grid : Object
그리드 옵션
Returns
- Object
- start : Number
시작 지점
- size : Number
그리드 넓이 또는 높이
- end : Number
마지막 지점
- start : Number
implement text rotate in grid text
Parameters
- textElement : SVGElement
chart.on() 을 쉽게 사용 할 수 있게 해주는 유틸리티 함수
Parameters
- type : String
event name
- callback : Function
Returns
- *
draw top
Parameters
- g : chart.util.svg
- ticks : Array
- values : Array
- min : Number
- checkActive : Function
scale wrapper
grid 의 x 좌표 값을 같은 형태로 가지고 오기 위한 wrapper 함수
grid 속성에 key 가 있다면 key 의 속성값으로 실제 값을 처리
// 그리드 속성에 키가 없을 때
scale(0); // 0 인덱스에 대한 값 (block, radar)
// grid 속성에 key 가 있을 때
grid { key : "field" }
scale(0) // field 값으로 scale 설정 (range, date)
Parameters
- scale : Object
- key : Object
Events
Event that occurs when clicking on the map area. (real name map.click
)
Parameters
- e : jQueryEvent
The event object.
- index : Number
Axis index.
Event that occurs when double clicking on the map area. (real name map.dblclick
)
Parameters
- e : jQueryEvent
The event object.
- index : Number
Axis index.
Event that occurs when left clicking on the map area. (real name map.mousedown
)
Parameters
- e : jQueryEvent
The event object.
- index : Number
Axis index.
Event that occurs when moving the mouse over the map area. (real name map.mousemove
)
Parameters
- e : jQueryEvent
The event object.
- index : Number
Axis index.
Event that occurs when moving the mouse out of the map area. (real name map.mouseout
)
Parameters
- e : jQueryEvent
The event object.
- index : Number
Axis index.
Event that occurs when placing the mouse over the map area. (real name map.mouseover
)
Parameters
- e : jQueryEvent
The event object.
- index : Number
Axis index.
Event that occurs after left clicking on the map area. (real name map.mouseup
)
Parameters
- e : jQueryEvent
The event object.
- index : Number
Axis index.
Event that occurs when right clicking on the map area. (real name map.rclick
)
Parameters
- e : jQueryEvent
The event object.
- index : Number
Axis index.