new XUIPerformanceLines()
Methods
-
AddOneGroupData(arrData)
-
增加一组数据
Parameters:
Name Type Description arrData
Array 增加一组数据 -
ClearAllData()
-
删除所有数据
-
GetBgColor() → {String}
-
获取背景色
Returns:
String -
GetFirstLineColor() → {String}
-
获取第一段折线颜色
Returns:
String -
GetFirstLineName() → {String}
-
获取第一段折线名称
Returns:
String -
GetFirstLineType() → {String}
-
获取第一段折线类型
Returns:
String -
GetFirstMarkLineColor() → {String}
-
获取第一段标线颜色
Returns:
String -
GetFirstMarkLineWidth() → {Number}
-
获取第一段标线宽度
Returns:
Number -
GetLegendIcon1() → {String}
-
获取第一个图标路径
Returns:
String -
GetLegendIcon2() → {String}
-
获取第二个图标路径
Returns:
String -
GetLegendLeft() → {String}
-
获取图例距左侧距离
Returns:
String -
GetLegendTextColor() → {String}
-
获取图例文本颜色
Returns:
String -
GetLegendTextSize() → {Number}
-
获取图例文本大小
Returns:
Number -
GetLegendTop() → {String}
-
获取图例距上方距离
Returns:
String -
GetOneGroupData(nIndex)
-
获得一组数据
Parameters:
Name Type Description nIndex
Number 索引 -
GetSecondLineColor() → {String}
-
获取第二段折线颜色
Returns:
String -
GetSecondLineName() → {String}
-
获取第二段折线名称
Returns:
String -
GetSecondLineType() → {String}
-
获取第二段折线类型
Returns:
String -
GetSecondMarkLineColor() → {String}
-
获取第二段标线颜色
Returns:
String -
GetSecondMarkLineWidth() → {Number}
-
获取第二段标线宽度
Returns:
Number -
GetXAxisInterval() → {Number}
-
获取X轴分割间隔
Returns:
Number -
GetXAxisLabelColor() → {String}
-
获取X轴标签颜色
Returns:
String -
GetXAxisLabelShow() → {Boolean}
-
获取X轴标签是否显示
Returns:
Boolean -
GetXAxisLineColor() → {String}
-
获取X轴轴线颜色
Returns:
String -
GetXAxisLineShow() → {Boolean}
-
获取X轴轴线显示状态
Returns:
Boolean -
GetXAxisLineWidth() → {Number}
-
获取X轴轴线宽度
Returns:
Number -
GetXAxisMax() → {Number}
-
获取X轴刻度最大值
Returns:
Number -
GetXAxisMin() → {Number}
-
获取X轴刻度最小值
Returns:
Number -
GetXAxisName() → {String}
-
获取X轴名称
Returns:
String -
GetXAxisNameColor() → {String}
-
获取X轴名称颜色
Returns:
String -
GetXAxisNameGap() → {Number}
-
获取X轴名称距轴位置
Returns:
Number -
GetXAxisNameLocation() → {String}
-
获取X轴名称位置
Returns:
String -
GetXAxisSplitShow() → {Boolean}
-
获取X轴分隔线是否显示
Returns:
Boolean -
GetXAxisTickShow() → {Boolean}
-
获取X轴刻度是否显示
Returns:
Boolean -
GetYAxisInterval() → {Number}
-
获取Y轴分割间隔
Returns:
Number -
GetYAxisLabelColor() → {String}
-
获取Y轴标签颜色
Returns:
String -
GetYAxisLabelShow() → {Boolean}
-
获取Y轴标签是否显示
Returns:
Boolean -
GetYAxisLineColor() → {String}
-
获取Y轴轴线颜色
Returns:
String -
GetYAxisLineShow() → {Boolean}
-
获取Y轴轴线显示状态
Returns:
Boolean -
GetYAxisLineWidth() → {Number}
-
获取Y轴轴线宽度
Returns:
Number -
GetYAxisMax() → {Number}
-
获取Y轴刻度最大值
Returns:
Number -
GetYAxisMin() → {Number}
-
获取Y轴刻度最小值
Returns:
Number -
GetYAxisName() → {String}
-
获取Y轴名称
Returns:
String -
GetYAxisNameColor() → {String}
-
获取Y轴名称颜色
Returns:
String -
GetYAxisNameGap() → {Number}
-
获取Y轴名称距轴位置
Returns:
Number -
GetYAxisNameLocation() → {String}
-
获取Y轴名称位置
Returns:
String -
GetYAxisSplitShow() → {Boolean}
-
获取Y轴分隔线是否显示
Returns:
Boolean -
GetYAxisTickShow() → {Boolean}
-
获取Y轴刻度是否显示
Returns:
Boolean -
RemoveOneGroupData(nIndex)
-
删除一组数据
Parameters:
Name Type Description nIndex
Number 索引 -
SetBgColor(strBgColor)
-
背景颜色
Parameters:
Name Type Description strBgColor
String 背景颜色 Properties:
Name Type Description BgColor
Color "0xff0A181C" -
SetCtrlBgColor(strBgColor)
-
背景颜色
Parameters:
Name Type Description strBgColor
String 背景颜色 Properties:
Name Type Description CtrlBgColor
Color "0xff0A181C" -
SetDrawColor(bDrawColor)
-
背景颜色绘制
Parameters:
Name Type Description bDrawColor
Boolean Properties:
Name Type Description BgDrawColor
Boolean true -
SetLegendIcon(nIndex, strIcon)
-
图例图标
Parameters:
Name Type Description nIndex
Number 索引 strIcon
String 图标 Properties:
Name Type Description LegendIcon
Collection [0,"image://common_2dChart/XUIPerformanceLines/images/sbwc_xzq_tuli.png"] -
SetLegendLeft(strLeft)
-
图例距左侧距离
Parameters:
Name Type Description strLeft
String 距左侧距离 Properties:
Name Type Description LegendLeft
String "70%" -
SetLegendTextColor(strColor)
-
图例文本颜色
Parameters:
Name Type Description strColor
String 图例文本颜色 Properties:
Name Type Description LegendTextColor
Color "0xffFFFFFF" -
SetLegendTextSize(nSize)
-
图例文本大小
Parameters:
Name Type Description nSize
Number 图例文本大小 Properties:
Name Type Description LegendTextSize
Number 15 -
SetLegendTop(strTop)
-
图例距上方距离
Parameters:
Name Type Description strTop
String 距上方距离 Properties:
Name Type Description LegendTop
String "2%" -
SetLineColor(nIndex, strColor)
-
折线颜色
Parameters:
Name Type Description nIndex
Number 索引 strColor
String 折线颜色 Properties:
Name Type Description LineColor
Collection [0,"0xffADB413"] -
SetLineName(nIndex, strName)
-
折线名称
Parameters:
Name Type Description nIndex
Number 索引 strName
String 折线名称 Properties:
Name Type Description LineName
Collection [0,"修正前"] -
SetLineType(nIndex, strType)
-
折线类型
Parameters:
Name Type Description nIndex
Number 索引 strType
String 折线类型 Properties:
Name Type Description LineType
Collection [0,"dotted"] -
SetMarkLineColor(nIndex, strColor)
-
标线颜色
Parameters:
Name Type Description nIndex
Number 索引 strColor
String 标线颜色 Properties:
Name Type Description MarkLineColor
Collection [0,"0xff012051"] -
SetMarkLineWidth(nIndex, nWidth)
-
标线宽度
Parameters:
Name Type Description nIndex
Number 索引 nWidth
Number 标线宽度 Properties:
Name Type Description MarkLineWidth
Collection [0,2] -
SetPicModel(strModel)
-
图片绘制模式
Parameters:
Name Type Description strModel
String 绘制模式 Properties:
Name Type Description PicModel
Combo ["no-repeat","repeat-x","repeat-y","repeat"] -
SetXAxisInterval(nInterval)
-
X轴分割间隔
Parameters:
Name Type Description nInterval
Number X轴分割间隔 Properties:
Name Type Description XAxisInterval
Number 5 -
SetXAxisLabelColor(strColor)
-
X轴标签颜色
Parameters:
Name Type Description strColor
String X轴标签颜色 Properties:
Name Type Description XAxisLabelColor
Color "0xffFF0000" -
SetXAxisLabelShow(bShow)
-
X轴标签是否显示
Parameters:
Name Type Description bShow
Boolean 标签是否显示 Properties:
Name Type Description XAxisLabelShow
Boolean true -
SetXAxisLineColor(strColor)
-
X轴轴线颜色
Parameters:
Name Type Description strColor
String X轴轴线颜色 Properties:
Name Type Description XAxisLineColor
Color "0xff003373" -
SetXAxisLineShow(bShow)
-
X轴轴线显示
Parameters:
Name Type Description bShow
Boolean X轴轴线显示 Properties:
Name Type Description XAxisLineShow
Boolean true -
SetXAxisLineWidth(nWidth)
-
X轴轴线宽度
Parameters:
Name Type Description nWidth
Number X轴轴线宽度 Properties:
Name Type Description XAxisLineWidth
Number 2 -
SetXAxisMax(nMax)
-
X轴刻度最大值
Parameters:
Name Type Description nMax
Number 刻度最大值 Properties:
Name Type Description XAxisMax
Number 10 -
SetXAxisMin(nMin)
-
X轴刻度最小值
Parameters:
Name Type Description nMin
Number 刻度最小值 Properties:
Name Type Description XAxisMin
Number 10 -
SetXAxisName(strName)
-
X轴轴名称
Parameters:
Name Type Description strName
String X轴轴名称 Properties:
Name Type Description XAxisName
String "/°" -
SetXAxisNameColor(strColor)
-
X轴名称颜色
Parameters:
Name Type Description strColor
String X轴名称颜色 Properties:
Name Type Description XAxisNameColor
Color "0xffFF0000" -
SetXAxisNameGap(nNameGap)
-
X轴名称距轴位置
Parameters:
Name Type Description nNameGap
Number 名称距轴位置 Properties:
Name Type Description XAxisNameGap
Number 45 -
SetXAxisNameLocation(strLocation)
-
X轴名称位置
Parameters:
Name Type Description strLocation
String 名称位置 Properties:
Name Type Description XAxisNameLocation
Combo ["start","middle","end"] -
SetXAxisSplitShow(bShow)
-
X轴分隔线是否显示
Parameters:
Name Type Description bShow
Boolean 分隔线是否显示 Properties:
Name Type Description XAxisSplitShow
Boolean false -
SetXAxisTickShow(bShow)
-
X轴刻度是否显示
Parameters:
Name Type Description bShow
Boolean 刻度是否显示 Properties:
Name Type Description XAxisTickShow
Boolean false -
SetYAxisInterval(nInterval)
-
Y轴分割间隔
Parameters:
Name Type Description nInterval
Number Y轴分割间隔 Properties:
Name Type Description YAxisInterval
Number 0.05 -
SetYAxisLabelColor(strColor)
-
Y轴标签颜色
Parameters:
Name Type Description strColor
String Y轴标签颜色 Properties:
Name Type Description YAxisLabelColor
Color "0xffFFFFFF" -
SetYAxisLabelShow(bShow)
-
Y轴标签是否显示
Parameters:
Name Type Description bShow
Boolean 标签是否显示 Properties:
Name Type Description YAxisLabelShow
Boolean true -
SetYAxisLineColor(strColor)
-
Y轴轴线颜色
Parameters:
Name Type Description strColor
String Y轴轴线颜色 Properties:
Name Type Description YAxisLineColor
Color "0xff003373" -
SetYAxisLineShow(bShow)
-
Y轴轴线显示
Parameters:
Name Type Description bShow
Boolean Y轴轴线显示 Properties:
Name Type Description YAxisLineShow
Boolean true -
SetYAxisLineWidth(nWidth)
-
Y轴轴线宽度
Parameters:
Name Type Description nWidth
Number Y轴轴线宽度 Properties:
Name Type Description YAxisLineWidth
Number 2 -
SetYAxisMax(nMax)
-
Y轴刻度最大值
Parameters:
Name Type Description nMax
Number 刻度最大值 Properties:
Name Type Description YAxisMax
Number 0.55 -
SetYAxisMin(nMin)
-
Y轴刻度最小值
Parameters:
Name Type Description nMin
Number 刻度最小值 Properties:
Name Type Description YAxisMin
Number 0.25 -
SetYAxisName(strName)
-
Y轴轴名称
Parameters:
Name Type Description strName
String Y轴轴名称 Properties:
Name Type Description YAxisName
String "发电性能指标 IG" -
SetYAxisNameColor(strColor)
-
Y轴名称颜色
Parameters:
Name Type Description strColor
String Y轴名称颜色 Properties:
Name Type Description YAxisNameColor
Color "0xffFFFFFF" -
SetYAxisNameGap(nNameGap)
-
Y轴名称距轴位置
Parameters:
Name Type Description nNameGap
Number 名称距轴位置 Properties:
Name Type Description YAxisNameGap
Number 45 -
SetYAxisNameLocation(strLocation)
-
Y轴名称位置
Parameters:
Name Type Description strLocation
String 名称位置 Properties:
Name Type Description YAxisNameLocation
Combo ["start","middle","end"] -
SetYAxisSplitShow(bShow)
-
Y轴分隔线是否显示
Parameters:
Name Type Description bShow
Boolean 分隔线是否显示 Properties:
Name Type Description YAxisSplitShow
Boolean false -
SetYAxisTickShow(bShow)
-
Y轴刻度是否显示
Parameters:
Name Type Description bShow
Boolean 刻度是否显示 Properties:
Name Type Description YAxisTickShow
Boolean false