new XUIRosePie()
Methods
-
AddData(strName, nValue)
-
增加数据
Parameters:
Name Type Description strName
String 名称 nValue
Number 数值 -
ChangeDataByName(strOldName, strNewName, nValue)
-
修改饼图的数据
Parameters:
Name Type Description strOldName
String 饼图对应下标的名称 strNewName
String 饼图对应下标新的名称 nValue
Number 饼图对应下标的值 Properties:
Name Type Description PieData
Collection ["示例1","示例10",335] -
GetAllData()
-
获得所有数据
-
GetData(strName)
-
获得一个数据
Parameters:
Name Type Description strName
String 所需数据扇形名称 -
RemoveAllData()
-
删除所有数据
-
RemoveDataByName(strName)
-
根据名称删除数据
Parameters:
Name Type Description strName
String 需要删除的扇形名称 -
SetBgColor(strColor)
-
背景颜色
Parameters:
Name Type Description strColor
String 背景颜色 Properties:
Name Type Description BgColor
Color "0xff2c343c" -
SetLabelLineLength(nFirstLen, nSecondLen)
-
引导线长度
Parameters:
Name Type Description nFirstLen
Number 第一段长度 nSecondLen
Number 第二段长度 Properties:
Name Type Description LabelLineLength
Collection [10,20] -
SetLineColor(strColor)
-
引导线颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description LineColor
Color "0x4cffffff" -
SetPieItemStyleColor(strColor)
-
扇形图颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description PieItemStyleColor
Color "0xffc23531" -
SetPiePos(strPiePos)
-
饼图位置
Parameters:
Name Type Description strPiePos
Array 饼图位置 Properties:
Name Type Description PiePos
Array ["50%","50%"] -
SetRadius(strRadius)
-
饼图大小
Parameters:
Name Type Description strRadius
String 饼图大小 Properties:
Name Type Description PieRadius
String "55%" -
SetShowType(strType)
-
展现形式
Parameters:
Name Type Description strType
String 展现形式 Properties:
Name Type Description ShowType
Combo ["radius","area","false"] -
SetTipTextColor(strColor)
-
标签颜色
Parameters:
Name Type Description strColor
String 标签颜色 Properties:
Name Type Description TipTextColor
Color "0x4cffffff" -
SetTitleFontColor(strColor)
-
标题颜色
Parameters:
Name Type Description strColor
String 标题文本颜色 Properties:
Name Type Description TitleTextColor
Color "0xffcccccc" -
SetTitleFontFamily(strFamily)
-
标题字体样式
Parameters:
Name Type Description strFamily
String 标题字体样式 -
SetTitleFontSize(nSize)
-
标题字体大小
Parameters:
Name Type Description nSize
Number 标题字体大小 Properties:
Name Type Description TitleTextSize
Number 18 -
SetTitleHorAlign(strHorAlign)
-
标题水平对齐方式
Parameters:
Name Type Description strHorAlign
String 标题水平对齐方式 Properties:
Name Type Description TitleHorAlign
Combo ["center","left","right"] -
SetTitleText(strText)
-
标题内容
Parameters:
Name Type Description strText
String 标题文本 Properties:
Name Type Description TitleText
String "Customized Pie" -
SetTitleVerAlign(strVerAlign)
-
标题垂直对齐方式
Parameters:
Name Type Description strVerAlign
String 标题上边距 Properties:
Name Type Description TitleVerAlign
Combo ["top","middle","bottom"] -
SetToolTipName(strName)
-
系列名称
Parameters:
Name Type Description strName
String 系列名称 Properties:
Name Type Description ToolTipName
String "访问来源" -
SetVisualMapRange(nMinValue, nMaxValue)
-
自定义颜色取值范围
Parameters:
Name Type Description nMinValue
Number 最小值 nMaxValue
Number 最大值