new XUITrafficSystem()
Methods
-
AddData(newData, strName)
-
增加一个数据
Parameters:
Name Type Description newData
Number 要怎加的数据值 strName
String 增加的数据的x轴名 -
Animation5()
-
数据轮播
-
ClearAllData()
-
删除所有数据
-
DelData(strName)
-
删除一个数据
Parameters:
Name Type Description strName
String 根据x轴名删除数据 -
GetAllData()
-
获得所有数据
-
GetData(strName)
-
获得一个数据
Parameters:
Name Type Description strName
String 根据x轴名获得数据 -
SetBarColor(strColor)
-
设置背景柱颜色
Parameters:
Name Type Description strColor
String 背景柱颜色 Properties:
Name Type Description BarColor
Color "0xff161E3B" -
SetBarMaxValue(nValue)
-
设置背景柱最大值
Parameters:
Name Type Description nValue
Number 最大值 Properties:
Name Type Description BarMaxValue
Number 50 -
SetLineColor(strColor)
-
设置折线颜色
Parameters:
Name Type Description strColor
String 折线颜色 Properties:
Name Type Description LineColor
Color "0xff08ADB8" -
SetLineData(arrData)
-
设置折线数据
Parameters:
Name Type Description arrData
Array 折线数据 Properties:
Name Type Description LineData
Array [12,21,16,26,23,32,20,25,18,33,25,32] -
SetLineDataByIndex(nIndex, nData)
-
根据下标设置折线数据
Parameters:
Name Type Description nIndex
Number 下标 nData
Number 折线数据 Properties:
Name Type Description LineDataByIndex
Collection [0,12] -
SetLineLabelColor(strColor)
-
设置折线文字颜色
Parameters:
Name Type Description strColor
String 折线文字颜色 Properties:
Name Type Description LineLabelColor
Color "0xffFF0000" -
SetLineSymbolSize(nSize)
-
设置折线散点大小
Parameters:
Name Type Description nSize
Number 折线散点大小 Properties:
Name Type Description LineSymbolSize
Number 5 -
SetXAxisData(arrData)
-
设置x轴名数据
Parameters:
Name Type Description arrData
Array 轴名数据 Properties:
Name Type Description XAxisData
Array ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"] -
SetXAxisDataByIndex(nIndex, strData)
-
按下标修改x轴名数据
Parameters:
Name Type Description nIndex
Number 下标 strData
String 修改x轴名数据 Properties:
Name Type Description XAxisDataByIndex
Collection [0,"01"] -
SetXAxisNameBgColor(strColor)
-
设置x轴名背景色
Parameters:
Name Type Description strColor
String 轴名背景色 Properties:
Name Type Description XAxisNameBgColor
Color "0xff161E3B" -
SetXAxisNameColor(strColor)
-
设置x轴名颜色
Parameters:
Name Type Description strColor
String 轴名颜色 Properties:
Name Type Description XAxisNameColor
Color "0xff9698B7" -
SetXAxisNameGap(nNameGap)
-
设置x轴名离轴距离
Parameters:
Name Type Description nNameGap
Number 离轴距离 Properties:
Name Type Description XAxisNameGap
Number 5