XUILineUpdate()

new XUILineUpdate()

Methods

AddGradientLine(nYAxisIndex, strName, strLineColor, strBeginColor, strEndColor)

加线
Parameters:
Name Type Description
nYAxisIndex Number Y轴索引
strName String 线名
strLineColor String 颜色
strBeginColor String 渐变起始颜色
strEndColor String 渐变结束颜色

AddLine(nYAxisIndex, strName, strColor)

加线
Parameters:
Name Type Description
nYAxisIndex Number Y轴索引
strName String 线名
strColor String 颜色

AddLineDataByIndex(nLineIndex, dData, bUpdate)

根据线的索引加数据
Parameters:
Name Type Description
nLineIndex Number 索引
dData double 数据
bUpdate Boolean 是否刷新

AddXAxisData(strData, bUpdate)

加X轴数据
Parameters:
Name Type Description
strData String 数据
bUpdate Boolean 是否刷新

BindTooltip(strCtrlId, bAlwaysShow)

绑定Tooltip
Parameters:
Name Type Description
strCtrlId String Tooltip控件的id名
bAlwaysShow Boolean 一直显示

ClearData()

清空

ClearLineData(nLineIndex)

清除线的数据
Parameters:
Name Type Description
nLineIndex Number 索引

ClearXAxisData()

清除X轴数据

DeleteLineByIndex(nIndex)

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

InitCtrl()

初始化

OpenAnimation(bOpen, nAnimationThreshold)

是否开启动画
Parameters:
Name Type Description
bOpen Boolean true开启,false关闭
nAnimationThreshold Number 动画的阈值,开启动画时有效
Properties:
Name Type Description
OpenAnimation Collection [false, 0]

Render()

渲染

Sampling(bSampling)

数据是否开启采样
Parameters:
Name Type Description
bSampling Boolean 开启采样

ScientificNotationFormatByIndex(nIndex, bScientificNotation, nNum)

科学计数法显示
Parameters:
Name Type Description
nIndex Number y轴索引
bScientificNotation Boolean 是否是科学计数法
nNum Number 精度

SetBgColor(strColor)

背景颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
BgColor Color "0xffffffff"

SetBgGridLineColor(strColor)

设置背景网格线颜色
Parameters:
Name Type Description
strColor String 背景网格线颜色
Properties:
Name Type Description
GridLineColor Color "0xff5E8E92"

SetBgGridLineCount(nXCount, nYCount)

背景网格线个数
Parameters:
Name Type Description
nXCount Number X轴上的个数
nYCount Number Y轴上的个数
Properties:
Name Type Description
BgGridLineCount Collection [10, 10]

SetBottomValue(nValue)

数据区域居下
Parameters:
Name Type Description
nValue Number
Properties:
Name Type Description
BottomValue Number 30

SetDoubleYAxisMode(bDoubleYAxis)

双Y轴模式
Parameters:
Name Type Description
bDoubleYAxis Boolean 是否显示
Properties:
Name Type Description
DoubleYAxisMode Boolean true

SetLeftValue(nValue)

数据区域居左
Parameters:
Name Type Description
nValue Number
Properties:
Name Type Description
LeftValue Number 35

SetLineData(nLineIndex, strXData, dYData, bUpdate)

设置线的数据
Parameters:
Name Type Description
nLineIndex Number 索引
strXData String x轴数据
dYData double y轴数据
bUpdate Boolean 是否刷新

SetLineDataByIndex(nLineIndex, arrData, bUpdate)

根据线的索引设置数据
Parameters:
Name Type Description
nLineIndex Number 索引
arrData Array 数据
bUpdate Boolean 是否刷新

SetRightValue(nValue)

数据区域居右
Parameters:
Name Type Description
nValue Number
Properties:
Name Type Description
RightValue Number 35

SetToolboxBorderGap(nTop, nRight)

设置工具箱的位置
Parameters:
Name Type Description
nTop Number 上边距
nRight Number 右边距
Properties:
Name Type Description
ToolboxBorderGap Collection [0, 0]

SetToolboxItemGap(nGap)

设置工具箱每项之间的间隔
Parameters:
Name Type Description
nGap Number 间隔
Properties:
Name Type Description
ToolboxItemGap Number 10

SetToolboxItemImage(nType, strImage)

设置工具箱项的图标
Parameters:
Name Type Description
nType Number 0:保存为图片、1:清除数据、2:区域缩放、3:区域缩放还原、4:还原
strImage ImageProp 图片路径

SetToolboxItemSize(nSize)

设置工具箱项的大小
Parameters:
Name Type Description
nSize Number 大小
Properties:
Name Type Description
ToolboxItemSize Number 12

SetToolboxItemTitle(nType, strTitle)

设置工具箱项的标题
Parameters:
Name Type Description
nType Number 0:保存为图片、1:清除数据、2:区域缩放、3:区域缩放还原、4:还原
strTitle String 标题文本

SetToolboxOrient(strOrient)

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

SetTopValue(nValue)

数据区域居上
Parameters:
Name Type Description
nValue Number
Properties:
Name Type Description
TopValue Number 25

SetXAxisData(arrData, bUpdate)

设置X轴数据
Parameters:
Name Type Description
arrData Array 数据
bUpdate Boolean 是否刷新

SetXAxisDataCount(nCount)

设置X轴数据个数
Parameters:
Name Type Description
nCount Number X轴数据个数

SetXAxisLabelInterval(nInterval)

设置X轴文本显示间隔
Parameters:
Name Type Description
nInterval Number 间隔
Properties:
Name Type Description
XAxisLabelInterval Number 40

SetXAxisLineColor(strColor)

设置X轴线颜色
Parameters:
Name Type Description
strColor String 轴线颜色
Properties:
Name Type Description
XAxisLineColor Color "0xff5E8E92"

SetXAxisUnit(strUnit)

x轴单位
Parameters:
Name Type Description
strUnit String 单位
Properties:
Name Type Description
XAxisUnit String ""

SetXAxisUnitColor(strColor)

X轴单位颜色
Parameters:
Name Type Description
strColor String 大小
Properties:
Name Type Description
XAxisUnitColor Color ""

SetXAxisUnitPosition(nPos)

x轴单位位置
Parameters:
Name Type Description
nPos Number 位置
Properties:
Name Type Description
XAxisUnitPosition Number 15

SetXAxisUnitSize(nSize)

X轴单位大小
Parameters:
Name Type Description
nSize Number 大小
Properties:
Name Type Description
XAxisUnitSize Number 12

SetYAxisFontColorByIndex(nIndex, strColor)

设置y轴字体颜色
Parameters:
Name Type Description
nIndex Number y轴索引
strColor String 颜色

SetYAxisLablePrecision(nIndex, nPrecision)

y轴精度
Parameters:
Name Type Description
nIndex Number y轴索引
nPrecision Number 精度

SetYAxisLineColor(strColor)

设置Y轴线颜色
Parameters:
Name Type Description
strColor String 轴线颜色
Properties:
Name Type Description
YAxisLineColor Color "0xff5E8E92"

SetYAxisLineColorByIndex(nIndex, strColor)

设置某y轴线颜色
Parameters:
Name Type Description
nIndex Number 索引
strColor String 轴线颜色

SetYAxisUnit(nIndex, strUnit)

y轴单位
Parameters:
Name Type Description
nIndex Number 索引
strUnit String 单位
Properties:
Name Type Description
YAxisUnit String ""

SetYAxisUnitColor(nIndex, strColor)

Y轴单位颜色
Parameters:
Name Type Description
nIndex Number 索引
strColor String 大小
Properties:
Name Type Description
YAxisUnitColor Color ""

SetYAxisUnitPosition(nIndex, nPos)

y轴单位位置
Parameters:
Name Type Description
nIndex Number 索引
nPos Number 位置
Properties:
Name Type Description
YAxisUnitPosition Number 15

SetYAxisUnitSize(nIndex, nSize)

y轴单位大小
Parameters:
Name Type Description
nIndex Number 索引
nSize Number 大小
Properties:
Name Type Description
YAxisUnitSize Number 12

SetYAxisValueRangeByIndex(nIndex, dMin, dMax, bForceControl)

设置数据范围
Parameters:
Name Type Description
nIndex Number y轴索引
dMin Double 最小值
dMax Double 最大值
bForceControl Boolean 强制限制

SetYAxisVisibleByIndex(nIndex, bVisible)

设置y轴是否显示
Parameters:
Name Type Description
nIndex Number y轴索引
bVisible Boolean 开启采样

ShowBgGridLine(bShowX, bShowY)

显示背景网格
Parameters:
Name Type Description
bShowX Boolean 是否显示纵向网格
bShowY Boolean 是否显示横向网格
Properties:
Name Type Description
ShowBgGridLine Collection [true, true]

ShowLineByIndex(nLineIndex, bShow)

设置线显示隐藏
Parameters:
Name Type Description
nLineIndex Number 线的下标
bShow Boolean 是否显示

ShowToolbox(bShow)

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

ShowToolboxItemTitle(bShow)

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

ShowYAxisTickLine(bShow)

显示Y轴刻度标记线
Parameters:
Name Type Description
bShow Boolean 是否显示
Properties:
Name Type Description
ShowYAxisTickLine Boolean true

StopRender()

暂停

Update()

刷新数据