new XUISinglePolarBrokenLine()
Methods
-
AddValueLine(strName, arr, strColor, strSymbol, strLegendSymbol, bFill)
-
添加一根数值数据线
Parameters:
Name Type Description strName
String 数据线名称 arr
Array 数据数组 strColor
String 线的颜色 strSymbol
String 数据点形状 strLegendSymbol
String 图例形状 bFill
Boolean 是否填充 -
AddValueLineSecond(strName, arr, strColor, strSymbol, strLegendSymbol, bFill)
-
添加第二类数据线
Parameters:
Name Type Description strName
String 数据线名称 arr
Array 数据数组 strColor
String 线的颜色 strSymbol
String 数据点形状 strLegendSymbol
String 图例形状 bFill
Boolean 是否填充 -
ClearAllData()
-
清除所有数据
-
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)
-
图例文本
Parameters:
Name Type Description strText1
String 样例文本1 strText2
String 样例文本2 Properties:
Name Type Description DemoLegendData
Collection ["示例文本1","示例文本2"] -
SetFifthCircleColor(strColor)
-
第五圈颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description FifthCircleColor
Color "0xff3d5368" -
SetFifthCircleTickColor(strColor)
-
第五圈刻度颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description FifthCircleTickColor
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 "0xff2b3c4f" -
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 "0xff8394c1" -
SetLabelFontSize(nSize)
-
外圈文本大小
Parameters:
Name Type Description nSize
Number 字体大小 Properties:
Name Type Description LabelFontSize
Number 15 -
SetLegendFontSize(nFontSize)
-
图例文本大小
Parameters:
Name Type Description nFontSize
Number 字体大小 Properties:
Name Type Description LegendFontSize
Number 20 -
SetLegendPos(strLeft, strBottom)
-
图例距左下位置
Parameters:
Name Type Description strLeft
String 左侧布局方式 strBottom
String 下侧百分比 Properties:
Name Type Description LegendPos
Collection ["center","20%"] -
SetLegendTextColor(strColor)
-
图例文本颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description LegendTextColor
Color "0xff8394c1" -
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 "0xff8394c1" -
SetPolarLabelFontSize(nSize)
-
极坐标轴文本大小
Parameters:
Name Type Description nSize
Number 字体大小 Properties:
Name Type Description PolarLabelFontSize
Number 15 -
SetSecondCircleColor(strColor)
-
第二圈颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description SecondCircleColor
Color "0xff41586d" -
SetThirdCircleColor(strColor)
-
第三圈颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description ThirdCircleColor
Color "0xff3d5368" -
SetThirdCircleTickColor(strColor)
-
第三圈刻度颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description ThirdCircleTickColor
Color "0xff3d5368" -
SetTipBgColor(strColor)
-
提示背景颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description TipBgColor
Color "0x7f202636" -
SetTipBorderColor(strColor)
-
提示边框颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description TipBorderColor
Color "0xff5f6c90" -
SetTipTextColor(strColor)
-
提示文本颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description TipTextColor
Color "0xffffffff" -
SetValueByIndex(strName, nIndex, nData)
-
修改数据
Parameters:
Name Type Description strName
String 数据线名称 nIndex
Number 序号 nData
Number 数据值 -
SetValueLineInfo(strName, strColor, strSymbol, strLegendSymbol, strFillColor)
-
通过名字修改数据线属性数据
Parameters:
Name Type Description strName
String 数据线名称 strColor
String 线的颜色 strSymbol
String 数据点形状 strLegendSymbol
String 图例形状 strFillColor
String 填充色 Properties:
Name Type Description ValueLineInfo
Collection ["示例文本1","0xffaba855","none","rect","0xff272e2f"] -
SetValueRange(nFirstMax, nSecondMax, nMin)
-
刻度线最大值
Parameters:
Name Type Description nFirstMax
Number 左侧最大值 nSecondMax
Number 右侧最大值 nMin
Number 中间最小值 Properties:
Name Type Description ValueRange
Collection [800,800,0]