XUIGradientBar()

Methods

AddData(arrXAxisData, arrBarData)

增加数据
Parameters:
Name Type Description
arrXAxisData Array 类目数据
arrBarData 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 柱子序号

ChangeOnexAxisData(strName, nIndex)

修改类目名称
Parameters:
Name Type Description
strName String 类目名称
nIndex Number 类目序号

DeleteOneBgBar(strName)

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

GetBackgrounBarHeight() → {Array}

获取背景柱高度
Returns:
Array

GetBarData() → {Array}

获取前柱体数据
Returns:
Array

GetBarGradationColor() → {Object}

获取前柱体颜色
Returns:
Object

GetBarTopImage() → {String}

获取顶点图片
Returns:
String

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

GetxAxisData() → {Array}

获取x轴类目
Returns:
Array

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]

SetBarTopImage(strImage)

前置柱顶点图片
Parameters:
Name Type Description
strImage ImageProp 图片路径
Properties:
Name Type Description
BarTopImage ImageProp "common_2dChart/XUIGradientBar/images/zuo1_wxgj_dian.png"

SetMarkPointData(nValue, nIndex, ny)

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

SetxAxisData(arrData)

x轴类目数据
Parameters:
Name Type Description
arrData Array 类目数据