XUILabelRoundPie()

Methods

AddPieData(strName, nValue)

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

GetDataByIndex(nIndex)

获取数据
Parameters:
Name Type Description
nIndex Number 饼图的下标

RemoveDataByIndex(nIndex)

删减饼图模块
Parameters:
Name Type Description
nIndex Number 删减的饼图的下标

SetBackgroundColor(strColor)

背景颜色
Parameters:
Name Type Description
strColor String 背景颜色
Properties:
Name Type Description
BackgroundColor Color "0xff071745"

SetDataByName(strName, nValue)

修改饼图各参数值
Parameters:
Name Type Description
strName String 饼图该下标对应的名称
nValue Number 饼图该下标对应的值

SetDataColorByIndex(nIndex, strColor)

饼图模块的颜色
Parameters:
Name Type Description
nIndex Number 饼图对应的下标
strColor String 饼图对应下标颜色

SetLegendFontColor(strColor)

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

SetLegendHorAlign(strHorAlign)

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

SetLegendOrient(strLegendOrient)

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

SetLegendVerAlign(strVerAlign)

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

SetPiePos(arrPos)

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

SetRadius(strRadius)

饼图大小
Parameters:
Name Type Description
strRadius String 饼图大小
Properties:
Name Type Description
PieRadius String "60%"

SetSubTitleFontColor(strColor)

副标题颜色
Parameters:
Name Type Description
strColor String 副标题文本颜色
Properties:
Name Type Description
TitleSubTextColor Color "0xffffffff"

SetSubTitleFontFamily(strFamily)

副标题字体样式
Parameters:
Name Type Description
strFamily String 副标题字体样式

SetSubTitleFontSize(nSize)

副标题字体大小
Parameters:
Name Type Description
nSize Number 副标题字体大小
Properties:
Name Type Description
SubTitleTextSize Number 12

SetSubTitleText(strText)

副标题内容
Parameters:
Name Type Description
strText String 副标题文本
Properties:
Name Type Description
TitleSubText String "示例副标题"

SetTipName(strName)

Tip名称
Parameters:
Name Type Description
strName String 系列文本名
Properties:
Name Type Description
PieName String "数据来源"

SetTitleFontColor(strColor)

主标题颜色
Parameters:
Name Type Description
strColor String 标题文本颜色
Properties:
Name Type Description
TitleTextColor Color "0xffffffff"

SetTitleFontFamily(strFamily)

主标题字体样式
Parameters:
Name Type Description
strFamily String 标题字体样式

SetTitleFontSize(nSize)

主标题字体大小
Parameters:
Name Type Description
nSize Number 标题字体大小
Properties:
Name Type Description
nSize Number 18

SetTitleHorAlign(strHorAlign)

主标题水平布局方式
Parameters:
Name Type Description
strHorAlign String 标题左边距
Properties:
Name Type Description
TitleHorAlign Combo ["center","left","right"]

SetTitleText(strTitleText)

主标题内容
Parameters:
Name Type Description
strTitleText String 标题文本
Properties:
Name Type Description
TitleText String "示例主标题"

SetTitleVerAlign(strVerAlign)

主标题竖直布局方式
Parameters:
Name Type Description
strVerAlign String 标题上边距
Properties:
Name Type Description
TitleVerAlign Combo ["top","middle","bottom"]