XUIPolarBrokenLine()

Methods

AddPercentageLine(arr, strColor, bFill)

添加一根百分比数据线
Parameters:
Name Type Description
arr Array 数据数组
strColor String 线的颜色
bFill Boolean 是否填充

AddValueLine(arr, strColor, bFill)

添加一根数值数据线
Parameters:
Name Type Description
arr Array 数据数组
strColor String 线的颜色
bFill Boolean 是否填充

ClearAllData()

清空所有数据

SetCenterHalfCircle(strColor)

中间半圆颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
CenterHalfCircle Color "0xff0d1327"

SetCenterLabel(strText)

中间文本
Parameters:
Name Type Description
strText String 文本
Properties:
Name Type Description
CenterLabel String "任务完成率"

SetCenterLabelColor(strColor)

中间文本颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
CenterLabelColor Color "0xff00ffb0"

SetCenterLabelFontSize(nFont)

中间文本大小
Parameters:
Name Type Description
nFont Number 字体大小
Properties:
Name Type Description
CenterLabelFontSize Number 15

SetCenterLabelPos(strLeft, strTop)

中间文本位置
Parameters:
Name Type Description
strLeft String 距离左侧
strTop String 距离上方
Properties:
Name Type Description
CenterLabelPos Collection ["0%", "-25%"]

SetCenterValue(nValue)

中间数值
Parameters:
Name Type Description
nValue Number 数据
Properties:
Name Type Description
CenterValue Number 96

SetCenterValueColor(strColor)

中间数值颜色
Parameters:
Name Type Description
strColor String 数据
Properties:
Name Type Description
CenterValueColor Color "0xff00ffb0"

SetCenterValueFontSize(nFont)

中间数值大小
Parameters:
Name Type Description
nFont Number 字体大小
Properties:
Name Type Description
CenterValueFontSize Number 50

SetCircleLabel(nMin, nMax, strUnit)

最外圈文本
Parameters:
Name Type Description
nMin Number 最小值
nMax Number 最大值
strUnit String 单位
Properties:
Name Type Description
CircleLabel Collection [1,12,"月"]

SetDemoLegendData(strText1, strText2, strText3)

图例文本
Parameters:
Name Type Description
strText1 String 图例1
strText2 String 图例2
strText3 String 图例3
Properties:
Name Type Description
DemoLegendData Collection ["示例文本1","示例文本2","示例文本3"]

SetFifthCircleColor(strColor)

第五圈颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
FifthCircleColor Color "0xff3d5368"

SetFitstAxisTickColor(strColor)

最外圈刻度颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
FitstAxisTickColor Color "0xff314458"

SetFitstCircleColor(strColor)

最外圈颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
FitstCircleColor Color "0xff2b3b50"

SetFourthCircleColor(strColor)

第四圈颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
FourthCircleColor Color "0xff3d5368"

SetFourthCircleTickColor(strColor)

第四圈刻度颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
FourthCircleTickColor Color "0xff3d5368"

SetLabelColor(strColor)

外圈文本颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
LabelColor Color "0xffa4a49c"

SetleftValueRange(nMin, nMax)

设置左侧刻度最小值和最大值
Parameters:
Name Type Description
nMin Number 最小值
nMax Number 最大值

SetLegendFontSize(nFontSize)

图例文本大小
Parameters:
Name Type Description
nFontSize Number 字体大小
Properties:
Name Type Description
LegendFontSize Number 20

SetLegendPos(strLeft, strTop)

图例距左上位置
Parameters:
Name Type Description
strLeft String 左侧位置
strTop String 上侧位置
Properties:
Name Type Description
LegendPos Collection ["center","3%"]

SetLegendTextColor(strColor)

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

SetPolarColor(strColor)

极坐标轴颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
PolarColor Color "0xff3c5166"

SetPolarLabelColor(strColor)

极坐标轴文本颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
PolarLabelColor Color "0xff78776d"

SetSecondCircleColor(strColor)

第二圈颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
SecondCircleColor Color "0xff41586d"

SetSixthCircleColor(strColor)

第六圈颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
SixthCircleColor Color "0xff3d5368"

SetSixthCircleTickColor(strColor)

第六圈刻度颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
SixthCircleTickColor Color "0xff3d5368"

SetThirdCircleColor(strColor)

第三圈颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
ThirdCircleColor Color "0xff3d5368"

SetValueLineInfo(nIndex, strColor, strSymbol, strFillColor)

通过序号修改数据线属性数据
Parameters:
Name Type Description
nIndex Number 数据线序号
strColor String 线的颜色
strSymbol String 数据点形状
strFillColor String 填充色
Properties:
Name Type Description
ValueLineInfo Collection [0,"0xff00ffb0","rect","0x00272e2f"]