XUICompSive()

new XUICompSive()

Methods

AddLine(strName, arrData)

添加一条折线
Parameters:
Name Type Description
strName String 添加的线名称如有图列和图列数据名称一致
arrData Array 添加线的数据

SetAreaColorByIndex(nIndex, strColor1, strColor2, strColor3)

按索引设置折线的区域渐变
Parameters:
Name Type Description
nIndex Number
strColor1 String 颜色1
strColor2 String 颜色2
strColor3 String 颜色3
Properties:
Name Type Description
AreaColorByIndex Collection [1,"0xB25e30e0","0x195e30e0","0x0c5e30e0"]

SetArrData(nIndex, arrData)

设置一组数据
Parameters:
Name Type Description
nIndex Number 索引
arrData Array 数据
Properties:
Name Type Description
setArr Array [11,16,25,12,15,22,10,13,21,16,23]

SetBackgroundColor(strColor)

设置背景色
Parameters:
Name Type Description
strColor String 背景色
Properties:
Name Type Description
BgColor Color "0xff09225B"

SetDataByIndex(nIndex, strName, arrData)

修改数据
Parameters:
Name Type Description
nIndex Number 索引
strName String 名称
arrData Array 数据

SetDataRange(nMin, nMax)

设置数据的最大最小值
Parameters:
Name Type Description
nMin Number 最小值
nMax Number 最大值
Properties:
Name Type Description
DataRange Collection [0,120]

SetEmpty()

清空所有数据

SetLinesSmooth(bSmooth)

设置所有折线不开启平滑处理
Parameters:
Name Type Description
bSmooth Boolean
Properties:
Name Type Description
bSmoothLines Boolean false

SetXAxisBoGap(bBoGap)

设置X轴和数据无留白
Parameters:
Name Type Description
bBoGap Boolean
Properties:
Name Type Description
bXAxisBoGap Boolean false

SetxAxisLabel(arrLab)

设置X轴标签名称
Parameters:
Name Type Description
arrLab Array
Properties:
Name Type Description
setArrLabel Array ["12:00","12:05","12:10","12:15","12:20","12:25","12:30","12:35","12:40","12:45","12:50"]