SeriesModel()

new SeriesModel()

图表Model类

Extends

Members

emphasisList

{Array} 支持emphasis配置的选项数组,兼容emphasis另一种写法

Inherited From:

type

{string} 组件名type

Overrides:

Methods

dataDirty(action)

触发dataDirty的事件

Parameters:
Name Type Description
action Object
Returns:
-

boolean true

Inherited From:

dirty(action)

标记为脏,将被更新

Parameters:
Name Type Description
action Object

触发dirty的事件

Inherited From:

findDataNamed(name) → {any}

寻找name对应的数据项

Parameters:
Name Type Description
name string
Returns:
any -

data

get(keyopt) → {any}

获取实际option

Parameters:
Name Type Attributes Description
key string <optional>

获取option内的key属性,若不传返回全部option

Returns:
any -

返回key对应的属性

Inherited From:

getAxisModel(xOrY) → {Object}

根据$axisIndex获取axisModel

Parameters:
Name Type Description
xOrY string

'x'或'y'

Returns:
Object -

axisModel

Inherited From:

getData(keyopt) → {any}

获取计算后的数据

Parameters:
Name Type Attributes Description
key string <optional>

返回内部data

Returns:
any -

返回数据

Inherited From:

getDataExtent(type, valueDim, valueIndex, needFilter)

获取范围内的极值

Parameters:
Name Type Default Description
type string

'max' or 'min' 获取最大值、最小值还是平均值

valueDim string 1

指定维度

valueIndex number 0

指定维度是数组

needFilter boolean true

是否根据axis进行范围外过滤,依赖于axis

Returns:
-

data

getSeriesColor(nameopt) → {string}

获取对应的颜色

Parameters:
Name Type Attributes Description
name string <optional>

获取name对应的颜色

Returns:
string -

color

isDataDirty() → {boolean}

是否为dataDirty

Returns:
boolean -

是否为dataDirty

Inherited From:

isDirty() → {boolean}

是否为dirty

Returns:
boolean -

是否为dirty

Inherited From:

set(key, valueopt)

设置option TODO 设置的option与之前相同时

Parameters:
Name Type Attributes Description
key string | Object

属性名或者属性对象

value any <optional>

属性内容

Inherited From:

shouldModelDirty(action, model, globalModel) → {boolean}

是否需要设置为dirty

Parameters:
Name Type Description
action Object

触发dirty的事件

model Object

组件model

globalModel Object

globalModel

Returns:
boolean -

是否需要标记dirty

Inherited From:

update()

子类需实现update方法

Inherited From:

updateData()

通过$dataIndex更新数据

Inherited From: