ClChart

ClChart

new ClChart()

Source:

Class representing ClChart

Methods

(static) bindData(chart, key)

Source:

Set the corresponding basic data key of the chart

Parameters:
Name Type Description
chart Object
key String

(static) clear()

Source:

clear current data and recharge linkinfo

(static) createChart(name, className, usercfg, callback) → {Object}

Source:

create chart

Parameters:
Name Type Description
name String

name is a unique name, the same name will override the previous class with the same name

className String

class name

usercfg Object

user custom config

callback function

callback

Returns:

chart instance

Type
Object

(static) fastDrawBegin()

Source:

Used for the same group of multi-graph only take data once, this can speed up the display, the program structure will not be chaotic

(static) fastDrawEnd()

Source:

set whether to turn on quick drawing

(static) getChart(key) → {Object}

Source:

get child chart by key

Parameters:
Name Type Description
key String

child chart key

Returns:

child chart

Type
Object

(static) getData(key) → {Array}

Source:

get data from datalayer by key

Parameters:
Name Type Description
key String
Returns:
Type
Array

(static) getDataLayer() → {Object}

Source:

get data layer

Returns:

data layer

Type
Object

(static) getEventLayer() → {Object}

Source:

get event layer

Returns:

event layer

Type
Object

(static) initChart(dataLayer, eventLayer)

Source:

Re-initialize Chart to clean up all charts and data

Parameters:
Name Type Description
dataLayer any

data layer

eventLayer any

event layer

(static) initData(tradeDate, tradetime)

Source:

init data

Parameters:
Name Type Description
tradeDate Number

trade date

tradetime Number

trade time

(static) onPaint(chart)

Source:

draw all the layers contained in this area

Parameters:
Name Type Description
chart Object

(static) readyData(data, lines)

Source:

init line data

Parameters:
Name Type Description
data Array
lines Array

(static) setColor(sysColor, chart)

Source:

Set the background color

Parameters:
Name Type Description
sysColor String
chart Object | null

(static) setData(key, fields, value)

Source:

set data

Parameters:
Name Type Description
key String

data key

fields Object

data field definition

value any

(static) setDataLayer(layer)

Source:

set data layer

Parameters:
Name Type Description
layer Object

(static) setHideInfo(isHideInfo)

Source:

Set whether to hide the information bar

Parameters:
Name Type Description
isHideInfo String

(static) setStandard(standard)

Source:

setting drafting standards

Parameters:
Name Type Description
standard String