new XUITownDivision()
Methods
-
AddNewData(nValue, strName, strColor)
-
添加一组数据
Parameters:
Name Type Description nValue
Number 数值 strName
String 数值名称 strColor
String 数值区域颜色 -
ChangeOneData(nIndex, nValue)
-
修改一组数据
Parameters:
Name Type Description nIndex
Number 下标 nValue
Number 数值 -
ClearAllData()
-
删除所有数据
-
DeleteData()
-
删除一组数据
-
GetAllData()
-
获得所有数据
-
GetOneData(nIndex)
-
获得一个数据
Parameters:
Name Type Description nIndex
Number 下标 -
SetColorGroup(strColor1, strColor2, strColor3, strColor4)
-
设置颜色组
Parameters:
Name Type Description strColor1
String 颜色1 strColor2
String 颜色2 strColor3
String 颜色3 strColor4
String 颜色4 Properties:
Name Type Description ColorGroup
Collection ["0xffffffff", "0xff00b4ff", "0xff0087dc", "0xff17539e"] -
SetData(nData)
-
传入随机数据
Parameters:
Name Type Description nData
Number 数据 Properties:
Name Type Description Data
Number 62 -
SetLegendLabelColor(strColor)
-
设置图例文字颜色
Parameters:
Name Type Description strColor
String 图例文字颜色 Properties:
Name Type Description LegendLabelColor
Color "0xff9698B7" -
SetLegendLabelSize(nSize)
-
设置图例文字大小
Parameters:
Name Type Description nSize
Number 图例文字大小 Properties:
Name Type Description LegendLabelSize
Number 10 -
SetLegendPosition(nIndex, horPos, verPos)
-
设置图例位置偏移
Parameters:
Name Type Description nIndex
Number 下标 horPos
String 水平位置 verPos
String 垂直位置 Properties:
Name Type Description LegendPosition
Collection [0,"22%","58%"] -
SetLegendSize(nSize)
-
设置图例大小
Parameters:
Name Type Description nSize
Number 图例大小 Properties:
Name Type Description LegendSize
Number 6 -
SetTitleColor(strColor)
-
设置百分比颜色
Parameters:
Name Type Description strColor
String Properties:
Name Type Description TitleColor
Color "0xffffffff" -
SetTitlePosition(nLeft, nTop)
-
设置百分比位置
Parameters:
Name Type Description nLeft
Number 左 nTop
Number 上 Properties:
Name Type Description TitilePostion
Collection [53,24] -
SetTitleSize(nSize)
-
设置百分比大小
Parameters:
Name Type Description nSize
Number Properties:
Name Type Description TitleSize
Number 13