new XUICapacityPictogram()
Methods
-
AddData(nData)
-
添加一组数据
Parameters:
Name Type Description nData
Number 数据 -
animationChange()
-
数据改变动画
-
DeleteData(nIndex)
-
删除一组数据
Parameters:
Name Type Description nIndex
Number 下标 -
SetLegendIconSize(nWidth, nHeight)
-
设置图标大小
Parameters:
Name Type Description nWidth
Number 宽度 nHeight
Number 高度 Properties:
Name Type Description LegendIconSize
Collection [28,28] -
SetLegendPosition(nIndex, strTop, strLeft)
-
设置图例位置
Parameters:
Name Type Description nIndex
Number 下标 strTop
String 垂直位置 strLeft
String 水平位置 Properties:
Name Type Description LegendPosition
Collection [0,"1%","2%"] -
SetLegendTextColor(nIndex, strColor)
-
设置图例文字颜色
Parameters:
Name Type Description nIndex
Number 下标 strColor
String 文字颜色 Properties:
Name Type Description LegendTextColor
Collection [0,"0xffC9CDEA"] -
SetLegendTextSize(nIndex, nSize)
-
设置图例文字大小
Parameters:
Name Type Description nIndex
Number 下标 nSize
Number 字体大小 Properties:
Name Type Description LegendTextSize
Collection [0,16] -
SetLineAreaColor(strColor1, strColor2)
-
设置区域填充色
Parameters:
Name Type Description strColor1
String 填充色1 strColor2
String 填充色2 Properties:
Name Type Description LineAreaColor
Collection ["0xff55DBE1","0xff0F446E"] -
SetLineData(arrData)
-
设置数据
Parameters:
Name Type Description arrData
Array 数据 Properties:
Name Type Description LineData
Array [4, 6, 8, 5, 6, 7, 4, 6, 8, 5, 6, 7] -
SetLineDataByIndex(nIndex, nData)
-
通过下标修改数据
Parameters:
Name Type Description nIndex
Number 下标 nData
Number 数据 Properties:
Name Type Description LineDataByIndex
Collection [0,4]