XUIComplexBar()

new XUIComplexBar()

Methods

AddData(arrXAxisData, arrBarData, arrBgBarData)

增加数据
Parameters:
Name Type Description
arrXAxisData Array 类目数据
arrBarData Array 前置数据
arrBgBarData Array 背景柱数据

AddOneBar(nHeight, nValue, strName)

增加一个柱子
Parameters:
Name Type Description
nHeight Number 背景柱高度
nValue Number 前柱高度
strName String 类目名称

ChangeOneBarHeight(nHeight, nIndex)

修改一个前柱
Parameters:
Name Type Description
nHeight Number 前柱高度
nIndex Number 柱子序号

ChangeOneBgBarHeight(nHeight, nIndex)

修改一个背景柱
Parameters:
Name Type Description
nHeight Number 背景柱高度
nIndex Number 柱子序号

DeleteOneBgBar(strName)

删除一个柱子
Parameters:
Name Type Description
strName String 类目名称

GetBackgrounBarHeight() → {Array}

获取背景柱高度
Returns:
Array

GetBarData() → {Array}

获取前柱体数据
Returns:
Array

GetMarkPointData() → {Number}

获取标注内容
Returns:
Number

GetOneBar(nIndex) → {Number}

获取一个前柱
Parameters:
Name Type Description
nIndex Number 前柱序号
Returns:
Number

GetOneBgBar(nIndex) → {Number}

获取一个背景柱
Parameters:
Name Type Description
nIndex Number 背景柱序号
Returns:
Number

SetBackgrounBarHeight(arrHeight)

背景柱高度
Parameters:
Name Type Description
arrHeight Array 背景柱高度

SetBarData(arrData)

前置柱体数据
Parameters:
Name Type Description
arrData Array 前置柱体数据

SetBarGradationColor(strFirstColor, strSecondColor, nStart, nEnd)

前置柱体渐变色
Parameters:
Name Type Description
strFirstColor String 渐变色第一种颜色
strSecondColor String 渐变色第二种颜色
nStart Number 颜色起始位置
nEnd Number 颜色结束位置
Properties:
Name Type Description
BarGradationColor Collection ["0xffffee00","0xffffcc00",0,1]

SetMarkPointData(nValue, nIndex, ny)

设置标签内容
Parameters:
Name Type Description
nValue Number 标签显示值
nIndex Number x轴坐标
ny Number y轴坐标
Properties:
Name Type Description
MarkPointData Collection [290,0,220]