XUIRichBrokenLine()

Methods

AddLinePercent(strName, arr, strSymbol, nSymboSize, StrStartColor, StrEndColor, strLineColor, strIconImg)

添加百分比的线
Parameters:
Name Type Description
strName String 线名
arr Array 数据
strSymbol String 线上图标样式
nSymboSize Number 图标大小
StrStartColor String 起始颜色
StrEndColor String 结束颜色
strLineColor String 线颜色
strIconImg String 图例图片

AddLineValue(strName, arr, strSymbol, nSymboSize, StrStartColor, StrEndColor, strLineColor, strIconImg)

添加数值线
Parameters:
Name Type Description
strName String 线名
arr Array 数据
strSymbol String 线上图标样式
nSymboSize Number 图标大小
StrStartColor String 起始颜色
StrEndColor String 结束颜色
strLineColor String 线颜色
strIconImg String 图例图片

ClearAllData()

清除所有

ClearData()

清除数据

ClearXCont()

清除x轴

GetDataByIndex(nIndex) → {Array}

通过序号获取数据
Parameters:
Name Type Description
nIndex Number 序号
Returns:
Array

SetBackgroundColor(strColor)

设置背景颜色
Parameters:
Name Type Description
strColor String
Properties:
Name Type Description
BackgroundColor Color "0xff222939"

SetDataByIndex(nIndex, arr)

通过序号修改数据
Parameters:
Name Type Description
nIndex Number 序号
arr Array 数据

SetDataZommRange(nStartValue, nEndValue)

设置显示范围
Parameters:
Name Type Description
nStartValue Number 起始值
nEndValue Number 结束值
Properties:
Name Type Description
DataZommRange Collection [0,6]

SetSelectedByXIndex(nIndex)

通过x轴索引设置选中项
Parameters:
Name Type Description
nIndex Number x轴文本
Properties:
Name Type Description
SelectedByXIndex Number 7

SetSelectedByXlabel(strXLabel)

通过x轴文本设置选中项
Parameters:
Name Type Description
strXLabel String x轴文本

SetXLabel(arrLabel)

设置x轴文本
Parameters:
Name Type Description
arrLabel Array 数组