XUIDashBoard()

new XUIDashBoard()

Methods

GetDataValue() → {Number}

获取大小
Returns:
Number - 值的大小

SetBackgroundColor(strBackgroundColor)

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

SetBigColor(strBigColor)

改变大圆颜色
Parameters:
Name Type Description
strBigColor String 大圆颜色
Properties:
Name Type Description
BigColor Color "0xff12274D"

SetBigPosition(arrBigPosition)

设置大圆位置
Parameters:
Name Type Description
arrBigPosition Array 大圆位置
Properties:
Name Type Description
BigPosition Array ["50%","50%"]

SetBigRadius(StrBigRadius)

设置大圆半径
Parameters:
Name Type Description
StrBigRadius String 大圆半径
Properties:
Name Type Description
BigRadius String "30%"

SetDashboardAngle(nDashboardStartAngle, nDashboardEndAngle)

设置仪表盘角度
Parameters:
Name Type Description
nDashboardStartAngle Number 仪表盘起始角度
nDashboardEndAngle Number 仪表盘结束角度
Properties:
Name Type Description
DashboardAngle Collection [90,-90]

SetDashboardAxisLineWidth(nDashboardAxisLineWidth)

仪表盘轴线宽度
Parameters:
Name Type Description
nDashboardAxisLineWidth Number 仪表盘轴线宽度
Properties:
Name Type Description
DashboardAxisLineWidth Number 8

SetDashboardColor(strDashboardFirstColor, strDashboardSecondColor, strDashboardThirdColor, strDashboardFourthColor)

仪表盘颜色
Parameters:
Name Type Description
strDashboardFirstColor String 仪表盘第一种颜色
strDashboardSecondColor String 仪表盘第二种颜色
strDashboardThirdColor String 仪表盘第三种颜色
strDashboardFourthColor String 仪表盘第四种颜色

SetDashboardPointerLength(strDashboardPointerLength)

仪表盘指针长度
Parameters:
Name Type Description
strDashboardPointerLength String 仪表盘指针长度
Properties:
Name Type Description
DashboardPointerLength String "90%"

SetDashboardPointerWidth(nDashboardPointerWidth)

仪表盘指针宽度
Parameters:
Name Type Description
nDashboardPointerWidth Number 仪表盘指针宽度
Properties:
Name Type Description
DashboardPointerWidth Number 5

SetDashboardPosition(arrDashboardPosition)

仪表盘位置
Parameters:
Name Type Description
arrDashboardPosition Array 仪表盘位置
Properties:
Name Type Description
DashboardPosition Array ["50%","50%"]

SetDashboardRadius(strDashboardRadius)

仪表盘半径
Parameters:
Name Type Description
strDashboardRadius String 仪表盘半径
Properties:
Name Type Description
DashboardRadius String "60%"

SetDashboardSize(nSize)

改变整体仪表盘大小
Parameters:
Name Type Description
nSize Number 整体大小
Properties:
Name Type Description
DashboardSize Number 90

SetDashboardSplitColor(strDashboardSplitColor)

仪表盘分割线颜色
Parameters:
Name Type Description
strDashboardSplitColor String 仪表盘分割线颜色
Properties:
Name Type Description
DashboardSplitColor Color "0xff0C142A"

SetDashboardSplitNumber(nDashboardSplitNumber)

仪表盘分割段数
Parameters:
Name Type Description
nDashboardSplitNumber Number 仪表盘分割段数
Properties:
Name Type Description
DashboardSplitNumber Number 20

SetDashboardSplitWidth(nDashboardSplitWidth)

仪表盘分割宽
Parameters:
Name Type Description
nDashboardSplitWidth Number 仪表盘分割宽
Properties:
Name Type Description
DashboardSplitWidth Number 5

SetDataColor(StrDataColor)

设置数据颜色
Parameters:
Name Type Description
StrDataColor String 数据颜色
Properties:
Name Type Description
DataColor Color "0xfffdfdfd"

SetDataFontSize(nDataFontSize)

数据尺寸
Parameters:
Name Type Description
nDataFontSize Number 数据尺寸
Properties:
Name Type Description
DataFontSize Number 20

SetDataName(strDataName)

设置文字内容
Parameters:
Name Type Description
strDataName String 文字内容
Properties:
Name Type Description
DataName String "测试数据1"

SetDataNameColor(strDataNameColor)

设置文字颜色
Parameters:
Name Type Description
strDataNameColor String 文字颜色
Properties:
Name Type Description
DataNameColor Color "0xff788AB7"

SetDataNamePosition(arrDataNamePosition)

设置文字位置
Parameters:
Name Type Description
arrDataNamePosition Array 文字位置
Properties:
Name Type Description
DataNamePosition Array ["0%","-15%"]

SetDataNameSize(nSize)

文字字体大小
Parameters:
Name Type Description
nSize Number 文字字体大小
Properties:
Name Type Description
DataNameSize Number 24

SetDataPosition(ArrDataPosition)

数据位置
Parameters:
Name Type Description
ArrDataPosition Array 数据位置
Properties:
Name Type Description
DataPosition Array ["0%","10%"]

SetDataValue(nDataValue)

数据大小
Parameters:
Name Type Description
nDataValue Number 数据大小
Properties:
Name Type Description
DataValue Number 80

SetOuterAxisLineAngle(nOuterAxisLineStartAngle, nOuterAxisLineEndAngle)

设置外层轴线角度
Parameters:
Name Type Description
nOuterAxisLineStartAngle Number 起始角度
nOuterAxisLineEndAngle Number 结束角度
Properties:
Name Type Description
OuterAxisLineAngle Collection [90,-90]

SetOuterAxisLineColor(strOuterAxisLineColor)

外层轴线颜色
Parameters:
Name Type Description
strOuterAxisLineColor String 外层轴线颜色
Properties:
Name Type Description
OuterAxisLineColor Color "0xff373D5A"

SetOuterAxisLinePosition(arrOuterAxisLinePosition)

外层轴线位置
Parameters:
Name Type Description
arrOuterAxisLinePosition Array 外层轴线位置
Properties:
Name Type Description
OuterAxisLinePosition Array ["50%","50%"]

SetOuterAxisLineRadius(strOuterAxisLineRadius)

外层轴线半径
Parameters:
Name Type Description
strOuterAxisLineRadius String 外层轴线半径
Properties:
Name Type Description
OuterAxisLineRadius String "76%"

SetOuterAxisLineWidth(nOuterAxisLineWidth)

外层轴线宽度
Parameters:
Name Type Description
nOuterAxisLineWidth Number 外层轴线宽度
Properties:
Name Type Description
OuterAxisLineWidth Number 2

SetScaleAngle(nScaleStartAngle, nScaleEndAngle)

刻度盘角度
Parameters:
Name Type Description
nScaleStartAngle Number 刻度盘起始角度
nScaleEndAngle Number 刻度盘结束角度
Properties:
Name Type Description
ScaleAngle Collection [90,-90]

SetScaleAxisTickSplitNumber(nScaleAxisTickSplitNumber)

刻度盘分隔线之间分割的刻度数
Parameters:
Name Type Description
nScaleAxisTickSplitNumber Number 刻度数
Properties:
Name Type Description
ScaleAxisTickSplitNumber Number 10

SetScaleOpacity(nScaleOpacity)

设置刻度盘刻度的透明度
Parameters:
Name Type Description
nScaleOpacity Number 刻度盘刻度的透明度
Properties:
Name Type Description
ScaleOpacity Number 0.1

SetScaleSplitLineColor(strScaleSplitLineColor)

刻度盘分割线颜色
Parameters:
Name Type Description
strScaleSplitLineColor String 刻度盘分割线颜色
Properties:
Name Type Description
ScaleSplitLineColor Color "0xff373D5A"

SetScaleSplitLineLength(nScaleSplitLineLength)

刻度盘分割线长度
Parameters:
Name Type Description
nScaleSplitLineLength Number 刻度盘分割线长度
Properties:
Name Type Description
ScaleSplitLineLength Number 12

SetScaleSplitLineWidth(nScaleSplitLineWidth)

刻度盘分割线宽度
Parameters:
Name Type Description
nScaleSplitLineWidth Number 刻度盘分割线宽度
Properties:
Name Type Description
ScaleSplitLineWidth Number 1

SetScaleSplitNumber(nScaleSplitNumber)

刻度分割段数
Parameters:
Name Type Description
nScaleSplitNumber Number 刻度分割段数
Properties:
Name Type Description
ScaleSplitNumber Number 9

SetSmallColor(StrSmallColor)

改变小圆颜色
Parameters:
Name Type Description
StrSmallColor String 小圆颜色
Properties:
Name Type Description
SmallColor Color "0xff0C162E"

SetSmallPosition(ArrSmallPosition)

设置小圆位置
Parameters:
Name Type Description
ArrSmallPosition Array 小圆位置
Properties:
Name Type Description
SmallPosition Array ["50%","50%"]

SetSmallRadius(StrSmallRadius)

设置小圆半径
Parameters:
Name Type Description
StrSmallRadius String 小圆半径
Properties:
Name Type Description
SmallRadius String "18%"

SetUnderAxisLineAngle(nUnderAxisLineStartAngle, nnderAxisLineEndAngle)

底色轴线角度
Parameters:
Name Type Description
nUnderAxisLineStartAngle Number 底色轴线起始角度
nnderAxisLineEndAngle Number 底色轴线结束角度

SetUnderAxisLineColor(strUnderAxisLineColor)

底色轴线颜色
Parameters:
Name Type Description
strUnderAxisLineColor String 底色轴线颜色
Properties:
Name Type Description
UnderAxisLineColor Color "0xff0A243F"

SetUnderAxisLineOpacity(nUnderAxisLineOpacity)

底色轴线透明度
Parameters:
Name Type Description
nUnderAxisLineOpacity Number 底色轴线透明度
Properties:
Name Type Description
UnderAxisLineOpacity Number 0.5

SetUnderAxisLinePosition(arrUnderAxisLinePosition)

底色轴线位置
Parameters:
Name Type Description
arrUnderAxisLinePosition Array 底色轴线位置
Properties:
Name Type Description
UnderAxisLinePosition Array ["50%","50%"]

SetUnderAxisLineRadius(strUnderAxisLineRadius)

底色轴线半径
Parameters:
Name Type Description
strUnderAxisLineRadius String 底色轴线半径
Properties:
Name Type Description
UnderAxisLineRadius String "69%"

SetUnderAxisLineSplitLineColor(strUnderAxisLineSplitLineColor)

底色轴线分割线颜色
Parameters:
Name Type Description
strUnderAxisLineSplitLineColor String 底色轴线分割线颜色
Properties:
Name Type Description
UnderAxisLineSplitLineColor Color "0xff0C142A"

SetUnderAxisLineSplitLineWidth(nUnderAxisLineSplitLineWidth)

底色轴线间隔距离
Parameters:
Name Type Description
nUnderAxisLineSplitLineWidth Number 底色轴线间隔距离
Properties:
Name Type Description
UnderAxisLineSplitLineWidth Number 5

SetUnderAxisLineSplitNumber(nUnderAxisLineSplitNumber)

底色轴线分割段数
Parameters:
Name Type Description
nUnderAxisLineSplitNumber Number 底色轴线分割段数
Properties:
Name Type Description
UnderAxisLineSplitNumber Number 20

SetUnderAxisLineWidth(nUnderAxisLineWidth)

底色轴线宽度
Parameters:
Name Type Description
nUnderAxisLineWidth Number 底色轴线宽度
Properties:
Name Type Description
UnderAxisLineWidth Number 18