new XUINightingaleRoseDiagram()
Methods
-
AddData(strName, nValue, strColor)
-
增加饼图数据
Parameters:
Name Type Description strName
String 名称 nValue
Number 数值 strColor
String 颜色 -
ChangeDataByName(strOldName, strNewName, nValue, strColor)
-
修改饼图的数据
Parameters:
Name Type Description strOldName
String 旧的名称 strNewName
String 新的名称 nValue
Number 数据值 strColor
String 颜色 Properties:
Name Type Description PieData
Collection ["示例1","示例1",335,"0xffff0000"] -
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 "0xffffffff" -
SetLegendFontColor(strColor)
-
图例文本颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description LegendFontColor
Color "0xff333333" -
SetLegendHorAlign(strHorAlign)
-
图例水平布局方式
Parameters:
Name Type Description strHorAlign
String 水平布局方式 Properties:
Name Type Description LegendHorAlign
Combo ["center","left","right"] -
SetLegendOrient(strOrient)
-
图例布局朝向
Parameters:
Name Type Description strOrient
String 布局朝向 Properties:
Name Type Description LegendOrient
Combo ["horizontal","vertical"] -
SetLegendVerAlign(strVerAlign)
-
图例竖直布局方式
Parameters:
Name Type Description strVerAlign
String 竖直布局方式 Properties:
Name Type Description LegendVerAlign
Combo ["bottom","middle","top"] -
SetPiePos(strPos)
-
饼图位置
Parameters:
Name Type Description strPos
Array 位置 Properties:
Name Type Description PiePos
Array ["50%","50%"] -
SetRadius(strRadius)
-
饼图大小
Parameters:
Name Type Description strRadius
Array 大小 Properties:
Name Type Description PieRadius
Array [20,110] -
SetShowType(strType)
-
饼图的展示形式
Parameters:
Name Type Description strType
String 展示形式 Properties:
Name Type Description ShowType
Combo ["radius","area","false"] -
SetSubTitleFontColor(strColor)
-
副标题颜色
Parameters:
Name Type Description strColor
String 副标题文本颜色 Properties:
Name Type Description SubTitleFontColor
Color "0xffaaaaaa" -
SetSubTitleFontFamily(strFamily)
-
副标题字体样式
Parameters:
Name Type Description strFamily
String 副标题字体样式 -
SetSubTitleFontSize(nSize)
-
副标题字体大小
Parameters:
Name Type Description nSize
Number 副标题字体大小 Properties:
Name Type Description SubTitleFontSize
Number 12 -
SetSubTitleText(strText)
-
副标题名称
Parameters:
Name Type Description strText
String 副标题文本 Properties:
Name Type Description SubTitleText
String "副标题文本" -
SetTitleFontColor(strColor)
-
标题颜色
Parameters:
Name Type Description strColor
String 标题文本颜色 Properties:
Name Type Description TitleFontColor
Color "0xff333333" -
SetTitleFontFamily(strFamily)
-
标题字体样式
Parameters:
Name Type Description strFamily
String 标题字体样式 -
SetTitleFontSize(nSize)
-
标题字体大小
Parameters:
Name Type Description nSize
Number 标题字体大小 Properties:
Name Type Description TitleFontSize
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 "标题文本" -
SetTitleVerAlign(strVerAlign)
-
标题垂直布局方式
Parameters:
Name Type Description strVerAlign
String 垂直布局方式 Properties:
Name Type Description TitleVerAlign
Combo ["top","middle","bottom"] -
SetToolTipName(strName)
-
ToolTip名称
Parameters:
Name Type Description strName
String toolTip名称 Properties:
Name Type Description ToolTipName
String "显示数据"