XUIBarWithBackground()

Methods

AddOneData(strName, nData)

添加一条数据
Parameters:
Name Type Description
strName String x轴名称
nData Number 柱状图数据

DelAllData()

删除全部数据

DelOneData(nIndex)

删除一条数据
Parameters:
Name Type Description
nIndex Number 索引

GetDataAll() → {Array}

获取柱状图数据
Returns:
Array - 数据值

GetDataByIndex(nIndex) → {Number}

获取柱状图数据通过索引
Parameters:
Name Type Description
nIndex Number 索引
Returns:
Number - 数据值

GetXAxisDataAll() → {Array}

获取X轴类目数据
Returns:
Array - 数据值

GetXAxisDataByIndex(nIndex) → {String}

获取X轴类目数据通过索引
Parameters:
Name Type Description
nIndex Number 索引
Returns:
String - 数据值

SetDataAll(arrData)

修改柱状图数据
Parameters:
Name Type Description
arrData Array 柱状图数据
Properties:
Name Type Description
DataAll Array [120,200,150,80,70,110,130]

SetDataByIndex(nIndex, nData)

修改柱状图一条数据
Parameters:
Name Type Description
nIndex Number 索引
nData Number 柱状图数据
Properties:
Name Type Description
DataByIndex Collection [0,120]

SetXAxisDataAll(arrData)

修改X轴类目数据
Parameters:
Name Type Description
arrData Array X轴类目数据
Properties:
Name Type Description
XAxisDataAll Array ["周一","周二","周三","周四","周五","周六","周日"]

SetXAxisDataByIndex(nIndex, strData)

修改X轴类目一条名称
Parameters:
Name Type Description
nIndex Number 索引
strData String X轴类目名称
Properties:
Name Type Description
XAxisDataByIndex Collection [0,"周一"]