ClChartLine

ClChartLine

new ClChartLine()

Source:

Class representing ClChartLine

Methods

(static) beforeLocation()

Source:

before location

(static) calcMaxMin(data, extremum, start, stop) → {Object}

Source:

calc max and min data

Parameters:
Name Type Description
data Array
extremum Object
start Number
stop Number
Returns:
Type
Object

(static) checkConfig()

Source:

check config

(static) createButton(name) → {Object}

Source:

create button

Parameters:
Name Type Description
name String

button name

Returns:

button instacne

Type
Object

(static) drawChildCharts()

Source:

draw child charts

(static) drawChildDraw(name)

Source:

draw child

Parameters:
Name Type Description
name String

child draw's name

(static) drawChildLines()

Source:

draw child lines

(static) drawClear()

Source:

clear chart

(static) drawTitleInfo(index)

Source:

draw title info

Parameters:
Name Type Description
index Number

title index

(static) getDataRange(data) → {Object}

Source:

get data range

Parameters:
Name Type Description
data Array
Returns:
Type
Object

(static) getLineDataKey(line) → {Object}

Source:

get line by data key

Parameters:
Name Type Description
line String
Returns:

line instance

Type
Object

(static) getMiddle(method) → {Number}

Source:

get middle

Parameters:
Name Type Description
method String
Returns:
Type
Number

(static) getMouseMoveData(xpos) → {Number}

Source:

get mouse move data

Parameters:
Name Type Description
xpos Number
Returns:
Type
Number

(static) getMoveData(index) → {Array}

Source:

According to the record index to obtain a set of data according to the keys, the data is {MA:[]...} is mainly provided for mouse movement

Parameters:
Name Type Description
index Number
Returns:
Type
Array

(static) hasButton(key, buttons) → {Boolean}

Source:

check has button by key

Parameters:
Name Type Description
key String

button key

buttons Array

buttons array

Returns:
Type
Boolean

(static) init(cfg, callback)

Source:

init line

Parameters:
Name Type Description
cfg Object

line's config

callback any

initialized callback

(static) locationData()

Source:

location data

(static) onClick(event)

Source:

handle click event

Parameters:
Name Type Description
event Object

(static) onKeyDown(event)

Source:

handle key down

Parameters:
Name Type Description
event Object

(static) onLongPress(event)

Source:

handle long press

Parameters:
Name Type Description
event Object

(static) onMouseMove(event)

Source:

handle mouse move

Parameters:
Name Type Description
event Object

(static) onMouseOut(event)

Source:

handle mouse out

Parameters:
Name Type Description
event Object

(static) onMouseWheel(event)

Source:

handle mouse wheel

Parameters:
Name Type Description
event Object

(static) onPaint()

Source:

draw all the layers contained in this area

(static) onPinch(event)

Source:

handle pinch

Parameters:
Name Type Description
event Object

(static) readyDraw()

Source:

set ready for draw

(static) readyScroll()

Source:

ready for draw scroll

(static) removeLine(name)

Source:

remove line by name

Parameters:
Name Type Description
name String

line name

(static) setButtons()

Source:

set buttons

(static) setChildDraw()

Source:

set child draw instance

(static) setChildLines()

Source:

set child line instance

(static) setHotButton(chart)

Source:

set hot button

Parameters:
Name Type Description
chart Object

chart instance

(static) setPublicRect()

Source:

set public rect

(static) setScroll()

Source:

set scroll instance

(static) setZoomInfo()

Source:

set zoom info