XUIAnnularPie()

new XUIAnnularPie()

Methods

AddDataForProp(arrData)

重置饼图数据
Parameters:
Name Type Description
arrData Array 数据数组

GetPieDataSplice() → {Array}

获取饼图数据
Returns:
Array - 数据

SetBackgroundColor(strBackgroundColor)

背景颜色
Parameters:
Name Type Description
strBackgroundColor String 背景颜色
Properties:
Name Type Description
BackgroundColor Color "0xffffffff"

SetLabelPosition(strLabelPosition)

文本标签位置
Parameters:
Name Type Description
strLabelPosition String 饼图文本标签的位置
Properties:
Name Type Description
LabelPosition Combo ["outside","inside","center"]

SetLabelTextStyleSize(nLabelTextStyleSize)

文本标签大小
Parameters:
Name Type Description
nLabelTextStyleSize Number 饼图文本标签的大小
Properties:
Name Type Description
LabelTextStyleSize Number 30

SetLabelTextStyleWeight(strLabelTextStyleWeight)

文本标签粗细
Parameters:
Name Type Description
strLabelTextStyleWeight String 饼图文本标签的粗细
Properties:
Name Type Description
LabelTextStyleWeight Combo ["bold","normal","bolder","lighter"]

SetLegendIcon(strLegendIcon)

图例图标样式
Parameters:
Name Type Description
strLegendIcon String 图标样式
Properties:
Name Type Description
LegendIcon Combo ["roundRect","rect","circle","triangle","diamond","pin","arrow","none"]

SetLegendLabelSize(nFont)

图例文本大小
Parameters:
Name Type Description
nFont Number 文本大小
Properties:
Name Type Description
nLegendFont Number 12

SetLegendLeft(strLegendLeft)

图例水平布局
Parameters:
Name Type Description
strLegendLeft String 图例组件水平左边距
Properties:
Name Type Description
LegendLeft Combo ["left","center","right"]

SetLegendOrient(strLegendOrient)

图例布局朝向
Parameters:
Name Type Description
strLegendOrient String 图例组件布局朝向
Properties:
Name Type Description
LegendOrient Combo ["vertical","horizontal"]

SetLegendTextColor(strLegendTextColor)

图例文本颜色
Parameters:
Name Type Description
strLegendTextColor String 图例的文本颜色
Properties:
Name Type Description
LegendTextColor Color "0xff333333"

SetLegendTop(strLegendTop)

图例垂直布局
Parameters:
Name Type Description
strLegendTop String 图例组件上边距
Properties:
Name Type Description
LegendTop Combo ["top","middle","bottom"]

SetPieCenter(strPieCenter)

饼图位置
Parameters:
Name Type Description
strPieCenter Array 饼图位置
Properties:
Name Type Description
PieCenter Array ["50%","50%"]

SetPieDataColor(nIndexColor, strDataColor)

饼图颜色
Parameters:
Name Type Description
nIndexColor Number 饼图下标
strDataColor String 饼图颜色
Properties:
Name Type Description
PieDataColor Collection [0,"0xffc23531"]

SetPieDataPush(nDataValue, strDataName)

增加饼图模块
Parameters:
Name Type Description
nDataValue Number 新增饼图的值
strDataName String 新增饼图的名称

SetPieDataSplice(strSplicName)

删减饼图模块
Parameters:
Name Type Description
strSplicName String 饼图系列名称

SetPieName(strPieName)

修改提示标题
Parameters:
Name Type Description
strPieName String 系列文本名
Properties:
Name Type Description
PieName String "访问来源"

SetPieRadius(strPieRadius)

修改饼图大小
Parameters:
Name Type Description
strPieRadius Array 饼图大小
Properties:
Name Type Description
PieRadius Array ["50%","70%"]

SetstrPieData(nIndex, nPieDataValue, strPieDataName)

修改饼图数值
Parameters:
Name Type Description
nIndex Number 饼图下标
nPieDataValue Number 饼图对应值
strPieDataName String 饼图对应名称
Properties:
Name Type Description
PieData Collection [0,335,"示例1"]