new XUIScatterUpdate()
Methods
-
AddGroup(nYAxisIndex, arrData, strColor)
-
加一组数据
Parameters:
Name Type Description nYAxisIndex
Number Y轴索引 arrData
Array 数据 strColor
String 颜色 -
ClearData()
-
清空
-
ClearXAxisData()
-
清除X轴数据
-
DeleteScatterByIndex(nIndex)
-
删除一组散点
Parameters:
Name Type Description nIndex
Number 索引 -
GetBackgroundColor() → {String}
-
获得背景颜色
Returns:
String -
GetBackgroundImage() → {String}
-
获得背景图
Returns:
String -
GetBgGridLineCount() → {Array}
-
获得背景网格线个数
Returns:
Array -
GetBottomValue() → {Number}
-
获得数据区域居下位置
Returns:
Number -
GetGroupDataByIndex(nIndex) → {Array}
-
获得一组数据
Parameters:
Name Type Description nIndex
Number 索引 Returns:
Array -
GetLeftValue() → {Number}
-
获得数据区域居左位置
Returns:
Number -
GetPicModel() → {String}
-
获得背景图绘制模式
Returns:
String -
GetRightValue() → {Number}
-
获得数据区域居右位置
Returns:
Number -
GetSymbolColorByIndex(nIndex) → {String}
-
获得一组圆点的颜色
Parameters:
Name Type Description nIndex
Number 索引 Returns:
String -
GetSymbolSize() → {Number}
-
获得圆点的大小
Returns:
Number -
GetTopValue() → {Number}
-
获得数据区域居上位置
Returns:
Number -
GetXAxisColor() → {String}
-
获得x轴轴线颜色
Returns:
String -
GetXAxisData() → {Array}
-
获得X轴数据
Returns:
Array -
GetXAxisFontColor() → {String}
-
获得x轴字体颜色
Returns:
String -
GetXAxisFontSize() → {Number}
-
获得x轴字体大小
Returns:
Number -
GetXAxisLabelInterval() → {Number}
-
获得X轴文本显示间隔
Returns:
Number -
GetXAxisSplitLineColor() → {String}
-
获得x轴分割线颜色
Returns:
String -
GetXAxisTickColor() → {String}
-
获得x轴刻度颜色
Returns:
String -
GetXAxisTickInterval() → {Number}
-
获得X轴刻度显示间隔
Returns:
Number -
GetXAxisTickLength() → {Number}
-
获得x轴刻度长度
Returns:
Number -
GetYAxisColor() → {String}
-
获得y轴轴线颜色
Returns:
String -
GetYAxisFontColorByIndex(nIndex) → {String}
-
获得y轴字体颜色
Parameters:
Name Type Description nIndex
Number y轴索引 Returns:
String -
GetYAxisFontSize(nIndex) → {Number}
-
获得y轴字体大小
Parameters:
Name Type Description nIndex
Number y轴索引 Returns:
Number -
GetYAxisSplitLineColor() → {String}
-
获得y轴分割线颜色
Returns:
String -
GetYAxisTickColor() → {String}
-
获得y轴刻度颜色
Returns:
String -
GetYAxisTickLength() → {Number}
-
获得y轴刻度长度
Returns:
Number -
GetYAxisValueRangeByIndex(nIndex) → {Array}
-
获得数据范围
Parameters:
Name Type Description nIndex
Number y轴索引 Returns:
Array -
InitCtrl(bMerge)
-
初始化
Parameters:
Name Type Description bMerge
Boolean -
IsDoubleYAxisMode() → {Boolean}
-
获得是否双Y轴模式
Returns:
Boolean -
IsDrawBgColor() → {Boolean}
-
获得背景绘制
Returns:
Boolean -
IsGridIncludeLable() → {Boolean}
-
获得图表区是否包含刻度标签
Returns:
Boolean -
IsSampling() → {Boolean}
-
获得数据是否开启采样
Returns:
Boolean -
IsYAxisVisibleByIndex(nIndex) → {Boolean}
-
获得y轴是否显示
Parameters:
Name Type Description nIndex
Number y轴索引 Returns:
Boolean -
Sampling(bSampling)
-
数据是否开启采样
Parameters:
Name Type Description bSampling
Boolean 开启采样 -
ScientificNotationFormatByIndex(nIndex, bScientificNotation, nNum)
-
科学计数法显示
Parameters:
Name Type Description nIndex
Number y轴索引 bScientificNotation
Boolean 是否是科学计数法 nNum
Number 精度 -
SetBackgroundColor(strColor)
-
背景颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description BackgroundColor
Color "0xff111c34" -
SetBackgroundImage(strImage)
-
背景图
Parameters:
Name Type Description strImage
ImageProp 图 Properties:
Name Type Description BackgroundImage
ImageProp "" -
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 -
SetDrawBgColor(bDraw)
-
背景绘制
Parameters:
Name Type Description bDraw
Boolean true背景色false背景图 Properties:
Name Type Description DrawBgColor
Boolean true -
SetGridIncludeLable(bIn)
-
图表区是否包含刻度标签
Parameters:
Name Type Description bIn
Boolean true包含false不包含 Properties:
Name Type Description GridIncludeLable
Boolean true -
SetGroupDataByIndex(nIndex, arrData)
-
设置一组数据
Parameters:
Name Type Description nIndex
Number 索引 arrData
Array 数据 -
SetLeftValue(nValue)
-
数据区域居左
Parameters:
Name Type Description nValue
Number 位置 Properties:
Name Type Description LeftValue
Number 35 -
SetPicModel(strModel)
-
背景图绘制模式
Parameters:
Name Type Description strModel
String 绘制模式 Properties:
Name Type Description PicModel
Combo ["no-repeat","repeat-x","repeat-y","repeat"] -
SetRightValue(nValue)
-
数据区域居右
Parameters:
Name Type Description nValue
Number 位置 Properties:
Name Type Description RightValue
Number 35 -
SetSymbolColorByIndex(nIndex, strColor)
-
一组圆点的颜色
Parameters:
Name Type Description nIndex
Number 索引 strColor
String 颜色 -
SetSymbolSize(nSize)
-
圆点的大小
Parameters:
Name Type Description nSize
Number 大小 Properties:
Name Type Description SymbolSize
Number 4 -
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 -
SetXAxisColor(strColor)
-
x轴轴线颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description XAxisColor
Color "0xff5e8e92" -
SetXAxisData(arrData)
-
X轴数据
Parameters:
Name Type Description arrData
Array 数据 -
SetXAxisFontColor(strColor)
-
设置x轴字体颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description xAxisFontColor
Color "0xffffffff" -
SetXAxisFontSize(nSize)
-
设置x轴字体大小
Parameters:
Name Type Description nSize
Number 大小 Properties:
Name Type Description xAxisFontSize
Number 16 -
SetXAxisLabelInterval(nInterval)
-
X轴文本显示间隔
Parameters:
Name Type Description nInterval
Number 间隔 Properties:
Name Type Description XAxisLabelInterval
Number 200 -
SetXAxisSplitLineColor(strColor)
-
x轴分割线颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description XAxisSplitLineColor
Color "0xff5e8e92" -
SetXAxisTickColor(strColor)
-
x轴刻度颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description XAxisTickColor
Color "0xff5e8e92" -
SetXAxisTickInterval(nInterval)
-
X轴刻度显示间隔
Parameters:
Name Type Description nInterval
Number 间隔 Properties:
Name Type Description XAxisTickInterval
Number 200 -
SetXAxisTickLength(nLength)
-
x轴刻度长度
Parameters:
Name Type Description nLength
Number 长度 Properties:
Name Type Description XAxisTickLength
Number 5 -
SetYAxisColor(strColor)
-
y轴轴线颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description YAxisColor
Color "0xff5e8e92" -
SetYAxisFontColorByIndex(nIndex, strColor)
-
y轴字体颜色
Parameters:
Name Type Description nIndex
Number y轴索引 strColor
String 颜色 Properties:
Name Type Description YAxisFontColorByIndex
Collection [0,"0xffffffff"] -
SetYAxisFontSize(nIndex, nSize)
-
设置y轴字体大小
Parameters:
Name Type Description nIndex
Number y轴索引 nSize
Number 大小 -
SetYAxisSplitLineColor(strColor)
-
y轴分割线颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description YAxisSplitLineColor
Color "0xff5e8e92" -
SetYAxisTickColor(strColor)
-
y轴刻度颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description YAxisTickColor
Color "0xff5e8e92" -
SetYAxisTickLength(nLength)
-
y轴刻度长度
Parameters:
Name Type Description nLength
Number 长度 Properties:
Name Type Description YAxisTickLength
Number 5 -
SetYAxisValueRangeByIndex(nIndex, nMin, nMax)
-
数据范围
Parameters:
Name Type Description nIndex
Number y轴索引 nMin
Number 最小值 nMax
Number 最大值 -
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 是否显示 -
ShowYAxisSmallTickLine(bShow)
-
显示Y轴小刻度
Parameters:
Name Type Description bShow
Boolean 是否显示 Properties:
Name Type Description ShowYAxisSmallTickLine
Boolean false -
ShowYAxisTickLine(bShow)
-
显示Y轴刻度标记线
Parameters:
Name Type Description bShow
Boolean 是否显示 Properties:
Name Type Description ShowYAxisTickLine
Boolean true