XUIAllanVariance()

Methods

AddData(nLine, dXValue, dYValue)

增加数据
Parameters:
Name Type Description
nLine Number 线的索引
dXValue Float x数据
dYValue Float y数据

AddLine(arrData, strColor)

增加线
Parameters:
Name Type Description
arrData Array 数据
strColor String 颜色

AppendTooltip(strText1, strText2)

加入Tooltip
Parameters:
Name Type Description
strText1 String 前段文本
strText2 String 后段文本
Properties:
Name Type Description
Tooltip Collection ["",""]

ClearData()

清空

DeleteDataByIndex(nIndex1, nIndex2)

删除一个数据
Parameters:
Name Type Description
nIndex1 Number 线索引
nIndex2 Number 点索引

DeleteLineByIndex(nIndex)

删除一条线
Parameters:
Name Type Description
nIndex Number 索引

GetBackgroundColor() → {String}

获得背景颜色
Returns:
String

GetBackgroundImage() → {String}

获得背景图
Returns:
String

GetBrokenLineColorByIndex(nIndex) → {String}

获得折线的颜色
Parameters:
Name Type Description
nIndex Number 索引
Returns:
String

GetBrokenLineWidthByIndex(nIndex) → {Number}

获得折线的宽度
Parameters:
Name Type Description
nIndex Number 索引
Returns:
Number

GetChartPosition() → {Array}

获得图表位置
Returns:
Array

GetData(nIndex) → {Array}

获得数据
Parameters:
Name Type Description
nIndex Number 线的索引
Returns:
Array

GetDataByIndex(nLine, nIndex) → {Array}

获得单个数据
Parameters:
Name Type Description
nLine Number 线的索引
nIndex Number 索引
Returns:
Array

GetFontSize() → {Number}

获得字体大小
Returns:
Number

GetPicModel() → {String}

获得背景图绘制模式
Returns:
String

GetXAixsTextColor() → {String}

获得x轴文字颜色
Returns:
String

GetXAxisLineColor() → {String}

获得x轴颜色
Returns:
String

GetXAxisLineWidth() → {Number}

获得x轴宽度
Returns:
Number

GetXAxisTickColor() → {String}

获得x轴刻度颜色
Returns:
String

GetXAxisTickLength() → {Number}

获得x轴刻度长度
Returns:
Number

GetXAxisTickWidth() → {Number}

获得x轴刻度宽度
Returns:
Number

GetXMinorSplitLineColor() → {String}

获得X轴辅助分割线颜色
Returns:
String

GetXMinorSplitLineNumber() → {Number}

获得X轴辅助分割线数量
Returns:
Number

GetXMinorSplitLineType() → {String}

获得X轴辅助分割线类型
Returns:
String

GetXMinorSplitLineWidth() → {Number}

获得X轴辅助分割线宽度
Returns:
Number

GetXMinorTickColor() → {String}

获得X轴辅助刻度颜色
Returns:
String

GetXMinorTickLength() → {Number}

获得X轴辅助刻度长度
Returns:
Number

GetXMinorTickWidth() → {Number}

获得X轴辅助刻度宽度
Returns:
Number

GetXScientificCountThreshold() → {Array}

获得x轴科学计数阀值
Returns:
Array

GetXSplitLineColor() → {String}

获得X轴分割线颜色
Returns:
String

GetXSplitLineType() → {String}

获得X轴分割线类型
Returns:
String

GetXSplitLineWidth() → {Number}

获得X轴分割线宽度
Returns:
Number

GetXTextSize() → {Number}

获得X轴字体大小
Returns:
Number

GetYAixsTextColor() → {String}

获得y轴文字颜色
Returns:
String

GetYAxisLineColor() → {String}

获得y轴颜色
Returns:
String

GetYAxisLineWidth() → {Number}

获得y轴宽度
Returns:
Number

GetYAxisTickColor() → {String}

获得y轴刻度颜色
Returns:
String

GetYAxisTickLength() → {Number}

获得y轴刻度长度
Returns:
Number

GetYAxisTickWidth() → {Number}

获得y轴刻度宽度
Returns:
Number

GetYMinorSplitLineColor() → {String}

获得Y轴辅助分割线颜色
Returns:
String

GetYMinorSplitLineNumber() → {Number}

获得Y轴辅助分割线数量
Returns:
Number

GetYMinorSplitLineType() → {String}

获得Y轴辅助分割线类型
Returns:
String

GetYMinorSplitLineWidth() → {Number}

获得Y轴辅助分割线宽度
Returns:
Number

GetYMinorTickColor() → {String}

获得Y轴辅助刻度颜色
Returns:
String

GetYMinorTickLength() → {Number}

获得Y轴辅助刻度长度
Returns:
Number

GetYMinorTickWidth() → {Number}

获得Y轴辅助刻度宽度
Returns:
Number

GetYScientificCountThreshold() → {Array}

获得y轴科学计数阀值
Returns:
Array

GetYSplitLineColor() → {String}

获得Y轴分割线颜色
Returns:
String

GetYSplitLineType() → {String}

获得Y轴分割线类型
Returns:
String

GetYSplitLineWidth() → {Number}

获得Y轴分割线宽度
Returns:
Number

GetYTextSize() → {Number}

获得Y轴字体大小
Returns:
Number

IsBgDrawColor() → {Boolean}

获得背景绘制
Returns:
Boolean

IsXAxisLineVisible() → {Boolean}

获得是否显示x轴
Returns:
Boolean

IsXAxisTickDirection() → {Boolean}

获得x轴刻度方向
Returns:
Boolean

IsXAxisTickVisible() → {Boolean}

获得显示x轴刻度
Returns:
Boolean

IsXMinorTickVisible() → {Boolean}

获得显示X轴辅助刻度
Returns:
Boolean

IsXSplitLineVisible() → {Boolean}

获得X轴分割线显示
Returns:
Boolean

IsYAxisLineVisible() → {Boolean}

获得是否显示y轴
Returns:
Boolean

IsYAxisTickDirection() → {Boolean}

获得y轴刻度方向
Returns:
Boolean

IsYAxisTickVisible() → {Boolean}

获得显示Y轴刻度
Returns:
Boolean

IsYMinorTickVisible() → {Boolean}

获得显示Y轴辅助刻度
Returns:
Boolean

IsYSplitLineVisible() → {Boolean}

获得Y轴分割线显示
Returns:
Boolean

SetBackgroundColor(strColor)

背景颜色
Parameters:
Name Type Description
strColor String 背景颜色
Properties:
Name Type Description
BackgroundColor Color "0xff121d36"

SetBackgroundImage(strImage)

背景图
Parameters:
Name Type Description
strImage ImageProp
Properties:
Name Type Description
BackgroundImage ImageProp ""

SetBgDrawColor(bDrawColor)

背景绘制
Parameters:
Name Type Description
bDrawColor Boolean true背景色false背景图
Properties:
Name Type Description
BgDrawColor Boolean true

SetBrokenLineColorByIndex(nIndex, strColor)

折线的颜色
Parameters:
Name Type Description
nIndex Number 索引
strColor String 颜色
Properties:
Name Type Description
BrokenLineColorByIndex Collection [0,"0xffafbb4d"]

SetBrokenLineWidthByIndex(nIndex, nWidth)

折线的宽度
Parameters:
Name Type Description
nIndex Number 索引
nWidth Number 宽度
Properties:
Name Type Description
BrokenLineWidthByIndex Collection [0,1]

SetChartPosition(strLeft, strRight, strBot, strTop)

图表位置
Parameters:
Name Type Description
strLeft String
strRight String
strBot String
strTop String
Properties:
Name Type Description
ChartPosition Collection ["3%","4%","3%","8%"]

SetData(nIndex, arrData)

数据
Parameters:
Name Type Description
nIndex Number 线的索引
arrData Array 数据

SetDataByIndex(nLine, nIndex, arrData)

单个数据
Parameters:
Name Type Description
nLine Number 线的索引
nIndex Number 索引
arrData Array 数据

SetFontSize(nSize)

字体大小
Parameters:
Name Type Description
nSize Number 字体大小
Properties:
Name Type Description
FontSize Number 16

SetMinorTickCount(nCount)

小刻度数量
Parameters:
Name Type Description
nCount Number 数量
Properties:
Name Type Description
MinorTickCount Number 9

SetPicModel(strModel)

背景图绘制模式
Parameters:
Name Type Description
strModel String 绘制模式
Properties:
Name Type Description
PicModel Combo ["no-repeat","repeat-x","repeat-y","repeat"]

SetShowXSplitLine(bShow)

X轴分割线显示
Parameters:
Name Type Description
bShow Boolean true显示false不显示
Properties:
Name Type Description
ShowXSplitLine Boolean true

SetShowYSplitLine(bShow)

Y轴分割线显示
Parameters:
Name Type Description
bShow Boolean true显示false不显示
Properties:
Name Type Description
ShowYSplitLine Boolean true

SetTitle(strTitle)

标题
Parameters:
Name Type Description
strTitle String 标题
Properties:
Name Type Description
Title String "Allan Deviation"

SetTitleColor(strColor)

标题颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
TitleColor Color "0xffffffff"

SetTitlePosition(strTop, strLeft)

标题位置
Parameters:
Name Type Description
strTop String 垂直方向
strLeft String 水平方向
Properties:
Name Type Description
TitlePosition Collection ["2%","center"]

SetTitleSize(nSize)

标题大小
Parameters:
Name Type Description
nSize Number 大小
Properties:
Name Type Description
TitleSize Number 16

SetToolboxItemImage(strImage)

设置工具箱项的图标
Parameters:
Name Type Description
strImage ImageProp 图片路径
Properties:
Name Type Description
ToolboxItemImage ImageProp ""

SetToolboxOrient(strOrient)

设置工具箱的布局朝向
Parameters:
Name Type Description
strOrient String 布局朝向
Properties:
Name Type Description
ToolboxOrient Combo ["vertical", "horizontal"]

SetTooltipBgColor(strColor)

Tooltip背景色
Parameters:
Name Type Description
strColor String 背景色
Properties:
Name Type Description
TooltipBgColor Color "0x33ffffff"

SetTooltipHeight(nHeight)

Tooltip高度
Parameters:
Name Type Description
nHeight Number 高度
Properties:
Name Type Description
TooltipHeight Number 20

SetTooltipPosition(nRight, nTop)

Tooltip位置
Parameters:
Name Type Description
nRight Number 右边距
nTop Number 上边距
Properties:
Name Type Description
TooltipPosition Collection [20,50]

SetTooltipTextByIndex(nIndex, strText1, strText2)

Tooltip某项文字内容
Parameters:
Name Type Description
nIndex Number 索引
strText1 String 前段文字
strText2 String 后段文字
Properties:
Name Type Description
TooltipTextByIndex Collection [0,"",""]

SetTooltipTextColor(strColor)

Tooltip文字颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
TooltipTextColor Color "0xff000000"

SetTooltipTextSize(nSize)

Tooltip文字大小
Parameters:
Name Type Description
nSize Number 大小
Properties:
Name Type Description
TooltipTextSize Number 16

SetTooltipTextSpace(nPadding)

Tooltip文字段间距
Parameters:
Name Type Description
nPadding Number 边距
Properties:
Name Type Description
TooltipTextSpace Number 1

SetTooltipVisible(bShow)

Tooltip显示
Parameters:
Name Type Description
bShow Boolean true显示,false不显示

SetTooltipWidth(nWidth)

Tooltip宽度
Parameters:
Name Type Description
nWidth Number 宽度
Properties:
Name Type Description
TooltipWidth Number 180

SetXAixsTextColor(strColor)

x轴文字颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
XAixsTextColor Color "0xffffffff"

SetXAxisLineColor(strColor)

X轴颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
XAxisLineColor Color "0xff173365"

SetXAxisLineWidth(nWidth)

X轴宽度
Parameters:
Name Type Description
nWidth Number 宽度
Properties:
Name Type Description
XAxisLineWidth Number 1

SetXAxisTickColor(strColor)

x轴刻度颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
XAxisTickColor Color "0xff173365"

SetXAxisTickDirection(bInside)

x轴刻度方向
Parameters:
Name Type Description
bInside Boolean true向内,false向外
Properties:
Name Type Description
XAxisTickDirection Boolean false

SetXAxisTickLength(nLength)

x轴刻度长度
Parameters:
Name Type Description
nLength Number 长度
Properties:
Name Type Description
XAxisTickLength Number 0

SetXAxisTickWidth(nWidth)

x轴刻度宽度
Parameters:
Name Type Description
nWidth Number 宽度
Properties:
Name Type Description
XAxisTickWidth Number 1

SetXMinorSplitLineColor(strColor)

X轴辅助分割线颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
XMinorSplitLineColor Color "0xff1f305b"

SetXMinorSplitLineNumber(nNUM)

X轴辅助分割线数量
Parameters:
Name Type Description
nNUM Number 数量
Properties:
Name Type Description
XMinorSplitLineNumber Number 5

SetXMinorSplitLineType(strType)

X轴辅助分割线类型
Parameters:
Name Type Description
strType String 类型
Properties:
Name Type Description
XMinorSplitLineType Combo ["solid","dashed","dotted"]

SetXMinorSplitLineWidth(nWidth)

X轴辅助分割线宽度
Parameters:
Name Type Description
nWidth Number 宽度
Properties:
Name Type Description
XMinorSplitLineWidth Number 1

SetXMinorTickColor(strColor)

X轴辅助刻度颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
XMinorTickColor Color "0xff173365"

SetXMinorTickLength(nLen)

X轴辅助刻度长度
Parameters:
Name Type Description
nLen Number 长度
Properties:
Name Type Description
XMinorTickLength Number 0

SetXMinorTickWidth(nWidth)

X轴辅助刻度宽度
Parameters:
Name Type Description
nWidth Number 宽度
Properties:
Name Type Description
XMinorTickWidth Number 1

SetXScientificCountThreshold(nMin, nMax, nPre)

x轴科学计数阀值
Parameters:
Name Type Description
nMin Number 最小阀值
nMax Number 最大阀值
nPre Number 精度
Properties:
Name Type Description
XScientificCountThreshold Collection [0.001,999999,0]

SetXSplitLineColor(strColor)

X轴分割线颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
XSplitLineColor Color "0xff1f305b"

SetXSplitLineType(strType)

X轴分割线类型
Parameters:
Name Type Description
strType String 类型
Properties:
Name Type Description
XSplitLineType Combo ["solid","dashed","dotted"]

SetXSplitLineWidth(nWidth)

X轴分割线宽度
Parameters:
Name Type Description
nWidth Number 宽度
Properties:
Name Type Description
XSplitLineWidth Number 1

SetXTextSize(nSize)

X轴字体大小
Parameters:
Name Type Description
nSize Number
Properties:
Name Type Description
XTextSize Number 16

SetYAixsTextColor(strColor)

y轴文字颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
YAixsTextColor Color "0xffffffff"

SetYAxiRange(nMin, nMax)

y轴范围
Parameters:
Name Type Description
nMin Double 最小值
nMax Double 最大值
Properties:
Name Type Description
YAxiRange Collection [0,100]

SetYAxisLineColor(strColor)

Y轴颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
YAxisLineColor Color "0xff173365"

SetYAxisLineWidth(nWidth)

Y轴宽度
Parameters:
Name Type Description
nWidth Number 宽度
Properties:
Name Type Description
YAxisLineWidth Number 1

SetYAxisTickColor(strColor)

y轴刻度颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
YAxisTickColor Color "0xff173365"

SetYAxisTickDirection(bInside)

y轴刻度方向
Parameters:
Name Type Description
bInside Boolean true向内,false向外
Properties:
Name Type Description
YAxisTickDirection Boolean false

SetYAxisTickLength(nLength)

y轴刻度长度
Parameters:
Name Type Description
nLength Number 长度
Properties:
Name Type Description
YAxisTickLength Number 0

SetYAxisTickWidth(nWidth)

y轴刻度宽度
Parameters:
Name Type Description
nWidth Number 宽度
Properties:
Name Type Description
YAxisTickWidth Number 1

SetYMinorSplitLineColor(strColor)

Y轴辅助分割线颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
YMinorSplitLineColor Color "0xff1f305b"

SetYMinorSplitLineNumber(nNUM)

Y轴辅助分割线数量
Parameters:
Name Type Description
nNUM Number 数量
Properties:
Name Type Description
YMinorSplitLineNumber Number 5

SetYMinorSplitLineType(strType)

Y轴辅助分割线类型
Parameters:
Name Type Description
strType String 类型
Properties:
Name Type Description
YMinorSplitLineType Combo ["solid","dashed","dotted"]

SetYMinorSplitLineWidth(nWidth)

Y轴辅助分割线宽度
Parameters:
Name Type Description
nWidth Number 宽度
Properties:
Name Type Description
YMinorSplitLineWidth Number 1

SetYMinorTickColor(strColor)

Y轴辅助刻度颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
YMinorTickColor Color "0xff173365"

SetYMinorTickLength(nLen)

Y轴辅助刻度长度
Parameters:
Name Type Description
nLen Number 长度
Properties:
Name Type Description
YMinorTickLength Number 0

SetYMinorTickWidth(nWidth)

Y轴辅助刻度宽度
Parameters:
Name Type Description
nWidth Number 宽度
Properties:
Name Type Description
YMinorTickWidth Number 0

SetYScientificCountThreshold(nMin, nMax, nPre)

y轴科学计数阀值
Parameters:
Name Type Description
nMin Number 最小阀值
nMax Number 最大阀值
nPre Number 精度
Properties:
Name Type Description
YScientificCountThreshold Collection [0.001,999999,0]

SetYSplitLineColor(strColor)

Y轴分割线颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
YSplitLineColor Color "0xff1f305b"

SetYSplitLineType(strType)

Y轴分割线类型
Parameters:
Name Type Description
strType String 类型
Properties:
Name Type Description
YSplitLineType Combo ["solid","dashed","dotted"]

SetYSplitLineWidth(nWidth)

Y轴分割线宽度
Parameters:
Name Type Description
nWidth Number 宽度
Properties:
Name Type Description
YSplitLineWidth Number 1

SetYTextSize(nSize)

Y轴字体大小
Parameters:
Name Type Description
nSize Number 字体大小
Properties:
Name Type Description
YTextSize Number 16

ShowTitle(bShow)

显示标题
Parameters:
Name Type Description
bShow Boolean true显示false不显示
Properties:
Name Type Description
ShowTitle Boolean true

ShowToolbox(bShow)

显示工具箱
Parameters:
Name Type Description
bShow Boolean 是否显示
Properties:
Name Type Description
ShowToolbox Boolean false

ShowToolboxItemTitle(bShow)

显示工具箱每个项的标题
Parameters:
Name Type Description
bShow Boolean 是否显示
Properties:
Name Type Description
ToolboxItemTitle Boolean true

ShowXAxisLine(bShow)

是否显示x轴
Parameters:
Name Type Description
bShow Boolean true显示,false不显示
Properties:
Name Type Description
ShowXAxisLine Boolean true

ShowXAxisTick(bShow)

显示x轴刻度
Parameters:
Name Type Description
bShow Boolean true显示,false不显示
Properties:
Name Type Description
ShowXAxisTick Boolean true

ShowXMinorTick(bShow)

显示X轴辅助刻度
Parameters:
Name Type Description
bShow Boolean true显示false不显示
Properties:
Name Type Description
XShowMinorTick Boolean true

ShowYAxisInverse(bShow)

Y轴反向显示
Parameters:
Name Type Description
bShow Boolean true反向false不反向
Properties:
Name Type Description
ShowYAxisInverse Boolean false

ShowYAxisLine(bShow)

是否显示y轴
Parameters:
Name Type Description
bShow Boolean true显示,false不显示
Properties:
Name Type Description
ShowYAxisLine Boolean true

ShowYAxisTick(bShow)

显示Y轴刻度
Parameters:
Name Type Description
bShow Boolean true显示false不显示
Properties:
Name Type Description
ShowYAxisTick Boolean false

ShowYMinorTick(bShow)

显示Y轴辅助刻度
Parameters:
Name Type Description
bShow Boolean true显示false不显示
Properties:
Name Type Description
YShowMinorTick Boolean true

ToolTipClear()

Tooltip清空