XUIElectricityDetectiionLine()

Methods

AddOneLine(NewData)

添加一条折线
Parameters:
Name Type Description
NewData Array 新数据

CloseMarkArea(nIndex)

取消标域
Parameters:
Name Type Description
nIndex Number 数值

CloseMarkLine(nIndex)

取消图标标线
Parameters:
Name Type Description
nIndex Number 数值

SetAxisLine(AxisLine)

y轴轴线显示
Parameters:
Name Type Description
AxisLine Boolean 显示
Properties:
Name Type Description
AxisLine Boolean false

SetAxisLineColor(AxisLineColor)

y轴轴线颜色
Parameters:
Name Type Description
AxisLineColor String 颜色
Properties:
Name Type Description
AxisLineColor Color "0xffffffff"

SetAxisPointer(AxisPointerType)

设置坐标轴指示器类型
Parameters:
Name Type Description
AxisPointerType String 指示器类型

SetGridHorzGap(Num1, Num2)

设置网格模型左右两端距离
Parameters:
Name Type Description
Num1 Number
Num2 Number

SetLineAreaColor(nIndex, strColor1, offset1, strColor2, offset2)

设置区域渐变色
Parameters:
Name Type Description
nIndex Number 数值
strColor1 String 区域填充色
offset1 Number 区域填充色
strColor2 String 区域填充色
offset2 Number 区域填充色
Properties:
Name Type Description
LineAreaColor Collection [0,"0xffff0000",0,"0xff00ff00",1]

SetLineAxisPointer(strMark, bFront)

设置提示框内容格式
Parameters:
Name Type Description
strMark String 标签内容
bFront Boolean 判断单位位置

SetLineColor(nIndex, LineColor)

折线颜色
Parameters:
Name Type Description
nIndex Number 数值
LineColor String 数值

SetLineData(nIndex, LineData)

设置折线数据
Parameters:
Name Type Description
nIndex Number 下标
LineData Array 数据
Properties:
Name Type Description
LineData Collection [0,[120, 131, 142, 157, 179, 208, 181, 169,256,356,267,227,134,147,168]]

SetLineEmphasise(nIndex, color, borderColor)

设置折线标签鼠标悬浮时颜色
Parameters:
Name Type Description
nIndex Number 折线下标
color String 标签颜色
borderColor String 描边颜色

SetLineGradientsColor(nIndex, LineColor1, offset1, LineColor2, offset2)

折线渐变颜色
Parameters:
Name Type Description
nIndex Number 数值
LineColor1 String 数值
offset1 Number 数值
LineColor2 String 数值
offset2 Number 数值

SetLineItemStyle(nIndex, color, borderColor, borderWidth)

设置折线标签颜色
Parameters:
Name Type Description
nIndex Number 折线下标
color String 标签颜色
borderColor String 描边颜色
borderWidth Number 描边宽度

SetLineShowSymbol(nIndex, ShowSymbol)

设置折线标签是否显示
Parameters:
Name Type Description
nIndex Number 折线下标
ShowSymbol Boolean 状态
Properties:
Name Type Description
ShowSymbol Collection [0,false]

SetLineSmooth(nIndex, LineSmooth)

是否平滑曲线
Parameters:
Name Type Description
nIndex Number
LineSmooth Boolean
Properties:
Name Type Description
LineSmooth Collection [0,true]

SetLineSymbol(nIndex, Symbol, SymbolSize)

设置折线标签样式
Parameters:
Name Type Description
nIndex Number 折线下标
Symbol String 标签样式
SymbolSize Number 标签大小
Properties:
Name Type Description
Symbol Collection [0,"circle",8]

SetLineWidth(nIndex, LineWidth)

折线宽度
Parameters:
Name Type Description
nIndex Number 索引
LineWidth Number 数值
Properties:
Name Type Description
LineWidth Collection [0,3]

SetMarkArea(nIndex, StartData, Range)

设置标域
Parameters:
Name Type Description
nIndex Number 折线下标
StartData String 开始位置
Range Number 标域范围
Properties:
Name Type Description
StartData Collection [0,"13:00",2]

SetTooltipShow(TooltipShow)

设置是否提示框显示
Parameters:
Name Type Description
TooltipShow Boolean 显示
Properties:
Name Type Description
TooltipShow Boolean true

SetXAxisData(arrXAxisData)

修改x轴坐标
Parameters:
Name Type Description
arrXAxisData Array 数据
Properties:
Name Type Description
arrXAxisData Array ["9:00","9:30","10:00","10:30","11:00","11:30","12:00","12:30","13:00","13:30","14:00","14:30","15:00","15:30","16:00"]

SetXAxisInterval(xAxisInterval)

x轴坐标分割间隔
Parameters:
Name Type Description
xAxisInterval Number 数值
Properties:
Name Type Description
xAxisInterval Number 1

SetYAxisAxisLabel(yAxisAxisLabel)

y轴标签显示
Parameters:
Name Type Description
yAxisAxisLabel Boolean 显示
Properties:
Name Type Description
yAxisAxisLabel Boolean false

SetYAxisAxisLabelColor(yAxisAxisLabelColor)

y轴标签颜色
Parameters:
Name Type Description
yAxisAxisLabelColor String 颜色
Properties:
Name Type Description
yAxisAxisLabelColor Color "0xffffffff"

SetYAxisShow(yAxisAxisShow)

y轴显示
Parameters:
Name Type Description
yAxisAxisShow Boolean 显示
Properties:
Name Type Description
yAxisAxisShow Boolean false

SetYAxisSplitLine(yAxisSplitLine)

y轴标区域分隔线显示
Parameters:
Name Type Description
yAxisSplitLine Boolean 显示
Properties:
Name Type Description
yAxisSplitLine Boolean false

SetYAxisSplitLineColor(yAxisSplitLineColor)

y轴标区域分隔线颜色
Parameters:
Name Type Description
yAxisSplitLineColor String 颜色
Properties:
Name Type Description
yAxisSplitLineColor Color "0xffffffff"