XUISimpleGauge()

Methods

GetDataByIndex() → {Number}

获取数据
Returns:
Number - 数据

GetProgressBgColor() → {String}

获取进度底色
Returns:
String - 进度底色

GetProgressColor() → {String}

获取进度颜色
Returns:
String - 进度颜色

SetGaugeAxisLineColor(strColor)

设置仪表盘轴线颜色
Parameters:
Name Type Description
strColor String 轴线颜色
Properties:
Name Type Description
GaugeAxisLineColor Color "0xffFCFC01"

SetGaugeAxisLineWidth(nWidth)

设置仪表盘轴线宽度
Parameters:
Name Type Description
nWidth Number 轴线宽度
Properties:
Name Type Description
GaugeAxisLineWidth Number 4

SetGaugeDetailColor(strColor)

设置仪表盘数字颜色
Parameters:
Name Type Description
strColor String 表盘数字颜色
Properties:
Name Type Description
GaugeDetailColor Color "0xffFFFFFF"

SetGaugeDetailFontSize(nFontSize)

设置仪表盘数字字体大小
Parameters:
Name Type Description
nFontSize Number 数字字体大小
Properties:
Name Type Description
GaugeDetailFontSize Number 28

SetGaugeNameContent(strName)

设置仪表盘文字内容
Parameters:
Name Type Description
strName String 表盘文字内容
Properties:
Name Type Description
GaugeNameContent String "时间可利用率"

SetGaugeProgress(nData)

设置进度
Parameters:
Name Type Description
nData Number 进度
Properties:
Name Type Description
GaugeProgress Number 40

SetGaugeRadius(strRadius)

设置仪表盘半径
Parameters:
Name Type Description
strRadius String 半径
Properties:
Name Type Description
GaugeRadius String "95%"

SetGaugeSplitLineColor(strColor)

设置仪表盘分割线颜色
Parameters:
Name Type Description
strColor String 分割线颜色
Properties:
Name Type Description
GaugeSplitLineColor Color "0xff0C192B"

SetGaugeSplitLineLength(nLength)

设置仪表盘分割线长度
Parameters:
Name Type Description
nLength Number 分割线长度
Properties:
Name Type Description
GaugeSplitLineLength Number 4

SetGaugeSplitLineWidth(nWidth)

设置仪表盘分割线宽度
Parameters:
Name Type Description
nWidth Number 分割线宽度
Properties:
Name Type Description
GaugeSplitLineWidth Number 1.5

SetGaugeSplitNumber(nSplitNumber)

设置仪表盘分割段数
Parameters:
Name Type Description
nSplitNumber Number 分割段数
Properties:
Name Type Description
GaugeSplitNumber Number 50

SetGaugeTitleColor(strColor)

设置仪表盘文字颜色
Parameters:
Name Type Description
strColor String 表盘文字颜色
Properties:
Name Type Description
GaugeTitleColor Color "0xffDBE6FF"

SetGaugeValueContent(nValue)

设置仪表盘数字内容
Parameters:
Name Type Description
nValue Number 表盘数字内容
Properties:
Name Type Description
GaugeValueContent Number 40

SetProgressColor(strColor)

设置进度颜色
Parameters:
Name Type Description
strColor String 进度颜色
Properties:
Name Type Description
ProgressColor Color "0xff1F2B48"