XUIBasePictorialBar()

Methods

DelDataAll()

删除全部数据

DelDataByIndex(nIndex)

删除一组数据
Parameters:
Name Type Description
nIndex Number

GetData() → {Array}

获取全部数据
Returns:
Array - 全部数据

GetDataByTime(strTime) → {Number}

获取一组数据
Parameters:
Name Type Description
strTime String x轴时间
Returns:
Number - 对应数据

GetxAxisDataByIndex(nIndex) → {String}

获取X轴一组数据
Parameters:
Name Type Description
nIndex Number 索引
Returns:
String - 一组数据

GetXData() → {Array}

获取X轴全部数据
Returns:
Array - 全部数据

SetAreaColor(strColor1, strColor2)

修改填充的渐变色
Parameters:
Name Type Description
strColor1 String 颜色1
strColor2 String 颜色2

SetArrData(arrData)

修改全部数据
Parameters:
Name Type Description
arrData Array 数据数组
Properties:
Name Type Description
ArrData Array [11, 16, 25, 12, 15, 22, 10, 13, 21, 16, 23]

SetDataByTime(strTime, nData)

增加数据
Parameters:
Name Type Description
strTime String x轴添加时间
nData Number y轴添加数据

SetxAxisData(arrData)

修改X轴数据
Parameters:
Name Type Description
arrData Array 数据数组
Properties:
Name Type Description
AxisData Array ["12:00", "12:05", "12:10", "12:15", "12:20", "12:25", "12:30", "12:35", "12:40", "12:45", "12:50"]

SetxAxisDataByIndex(nIndex, strName)

修改X轴类目名称
Parameters:
Name Type Description
nIndex Number 索引
strName String 数据
Properties:
Name Type Description
xAxisDataByIndex Collection [0,"12:00"]