new XUIAnscombeQuartet()
Methods
-
AddLineData(nXValue1, nYValue1, nXValue2, nYValue2, strLableName, strSeriesName)
-
添加直线数据
Parameters:
Name Type Description nXValue1
Number x轴值 nYValue1
Number y轴值 nXValue2
Number x轴值 nYValue2
Number y轴值 strLableName
String 文本标签 strSeriesName
String 系列名称 -
AddOneScatterData(nX, nY, strSeriesName)
-
添加一个数据
Parameters:
Name Type Description nX
Float x数据 nY
Float y数据 strSeriesName
String 系列名称 -
AddScatterData(arrDataX, arrDataY, strSeriesName)
-
添加散点数据
Parameters:
Name Type Description arrDataX
Array x散点数据 arrDataY
Array y散点数据 strSeriesName
String 系列名称 -
ChangeScatterData(strSeriesName, nIndex, nXValue, nYValue)
-
修改散点数据
Parameters:
Name Type Description strSeriesName
String 系列名称 nIndex
Number 序号 nXValue
Float x轴新值 nYValue
Float y轴新值 -
ClearScatterData()
-
清空散点数据
-
DeleteDataByIndex(nIndex, strName)
-
系列序号删数据
Parameters:
Name Type Description nIndex
Number 序号 strName
String 系列名称 -
DeleteLineData(strSeriesName)
-
删除直线
Parameters:
Name Type Description strSeriesName
String 系列名称 -
DeleteScatterData(strSeriesName)
-
删除散点数据
Parameters:
Name Type Description strSeriesName
String 系列名称 -
GetDataByIndexAndName(nIndex, strName) → {Array}
-
系列序号查数据
Parameters:
Name Type Description nIndex
Number 序号 strName
String 系列名称 Returns:
Array - 数据 -
IsDrawColor() → {Boolean}
-
背景是否以颜色绘制
Returns:
Boolean - 是否以颜色绘制 -
SetCtrlBgColor(strBgColor)
-
背景颜色
Parameters:
Name Type Description strBgColor
String 背景颜色 Properties:
Name Type Description CtrlBgColor
Color "0x00000000" -
SetCtrlBgImg(strBgImg)
-
背景图片
Parameters:
Name Type Description strBgImg
ImageProp 背景图片 Properties:
Name Type Description CtrlBgImg
ImageProp "echartsCase/XUIAnscombeQuartet/images/bg.png" -
SetDrawColor(bDrawColor)
-
背景是否颜色绘制
Parameters:
Name Type Description bDrawColor
Boolean Properties:
Name Type Description BgDrawColor
Boolean true -
SetLineColorByName(strSeriesName, strColor)
-
直线颜色
Parameters:
Name Type Description strSeriesName
String 系列名称 strColor
String 直线颜色 Properties:
Name Type Description LineColorByName
Collection ["I","0xffc23531"] -
SetScatterColor(strSeriesName, strColor)
-
散点颜色
Parameters:
Name Type Description strSeriesName
String 系列名称 strColor
String 散点颜色 Properties:
Name Type Description ScatterColor
Collection ["I","0xffc23531"] -
SetScatterSymbolSize(nSize, strSeriesName)
-
散点的大小
Parameters:
Name Type Description nSize
Number 散点大小 strSeriesName
String 系列名称 Properties:
Name Type Description ScatterSymbolSize
Collection [10,"I"] -
SetTooltipBackgroundColor(strColor)
-
提示框背景色
Parameters:
Name Type Description strColor
String 提示框背景色 Properties:
Name Type Description TooltipBackgroundColor
Color "0x323232B2" -
SetTooltipTextColor(strColor)
-
提示框文字颜色
Parameters:
Name Type Description strColor
String 提示框文字颜色 Properties:
Name Type Description TooltipTextColor
Color "0xffffffff" -
SetTooltipTextFontSize(nSize)
-
提示框文字大小
Parameters:
Name Type Description nSize
Number 提示框文字大小 Properties:
Name Type Description TooltipTextFontSize
Number 14 -
SetTooltipTextFontWeight(strFontWeight)
-
提示框文字粗细
Parameters:
Name Type Description strFontWeight
String 提示框文字粗细 Properties:
Name Type Description TooltipTextFontWeight
Combo ["normal","bold","bolder","lighter"] -
SetXAxisAxisLabelFontSize(nValue)
-
x轴文本大小
Parameters:
Name Type Description nValue
Number x轴刻度文本大小 Properties:
Name Type Description XAxisAxisLabelFontSize
Number 12 -
SetXAxisLineAxisLabelColor(strColor)
-
x轴文本颜色
Parameters:
Name Type Description strColor
String x轴刻度文本颜色 Properties:
Name Type Description XAxisLineAxisLabelColor
Color "0xff333333" -
SetXAxisLineColor(strColor)
-
x轴颜色
Parameters:
Name Type Description strColor
String x轴颜色 Properties:
Name Type Description XAxisLineColor
Color "0xff333333" -
SetXAxisLineType(strType)
-
x轴样式
Parameters:
Name Type Description strType
String x轴样式 Properties:
Name Type Description XAxisLineType
Combo ["solid","dashed","dotted"] -
SetXAxisMinValueAndMaxValue(nMin, nMax)
-
x轴最大最小值
Parameters:
Name Type Description nMin
Number x轴最小值 nMax
Number x轴最大值 Properties:
Name Type Description XAxisMinValueAndMaxValue
Collection [0,20] -
SetXAxisSplitLine(bYAxisSplitLine)
-
隐藏x轴分割线
Parameters:
Name Type Description bYAxisSplitLine
Boolean 隐藏x轴分割线 Properties:
Name Type Description XAxisSplitLine
Boolean true -
SetXAxisSplitLineColor(strColor)
-
x轴分割线颜色
Parameters:
Name Type Description strColor
String 分割线颜色 Properties:
Name Type Description XAxisSplitLineColor
Color "0xffcccccc" -
SetXAxisSplitLineType(strType)
-
x轴分割线样式
Parameters:
Name Type Description strType
String 分割线样式 Properties:
Name Type Description XAxisSplitLineType
Combo ["solid","dashed","dotted"] -
SetXAxisTickColor(strColor)
-
x轴刻度线颜色
Parameters:
Name Type Description strColor
String x轴刻度线颜色 Properties:
Name Type Description XAxisTickColor
Color "0xff333333" -
SetXAxisTickLength(nValue)
-
x轴刻度线长度
Parameters:
Name Type Description nValue
Number x轴刻度线长度 Properties:
Name Type Description XAxisTickLength
Number 5 -
SetXAxisTickType(strType)
-
x轴刻度线样式
Parameters:
Name Type Description strType
String 刻度线样式 Properties:
Name Type Description XAxisTickType
Combo ["solid","dashed","dotted"] -
SetXAxisTickWidth(nValue)
-
x轴刻度线宽度
Parameters:
Name Type Description nValue
Number x轴刻度线宽度 Properties:
Name Type Description XAxisTickwidth
Number 1 -
SetYAxisAxisLabelFontSize(nValue)
-
y轴文本大小
Parameters:
Name Type Description nValue
Number y轴刻度文本大小 Properties:
Name Type Description YAxisAxisLabelFontSize
Number 12 -
SetYAxisLineAxisLabelColor(strColor)
-
y轴文本颜色
Parameters:
Name Type Description strColor
String y轴刻度文本颜色 Properties:
Name Type Description YAxisLineAxisLabelColor
Color "0xff333333" -
SetYAxisLineColor(strColor)
-
y轴颜色
Parameters:
Name Type Description strColor
String y轴颜色 Properties:
Name Type Description YAxisLineColor
Color "0xff333333" -
SetYAxisLineType(strType)
-
y轴样式
Parameters:
Name Type Description strType
String y轴样式 Properties:
Name Type Description YAxisLineType
Combo ["solid","dashed","dotted"] -
SetYAxisMinValueAndMaxValue(nMin, nMax)
-
y轴最大最小值
Parameters:
Name Type Description nMin
Number y轴最小值 nMax
Number y轴最大值 Properties:
Name Type Description YAxisMinValueAndMaxValue
Collection [0,15] -
SetYAxisSplitLine(bYAxisSplitLine)
-
隐藏y轴分割线
Parameters:
Name Type Description bYAxisSplitLine
Boolean 隐藏y轴分割线 Properties:
Name Type Description YAxisSplitLine
Boolean true -
SetYAxisSplitLineColor(strColor)
-
y轴分割线颜色
Parameters:
Name Type Description strColor
String 分割线颜色 Properties:
Name Type Description YAxisSplitLineColor
Color "0xffcccccc" -
SetYAxisSplitLineType(strType)
-
y轴分割线样式
Parameters:
Name Type Description strType
String 分割线样式 Properties:
Name Type Description YAxisSplitLineType
Combo ["solid","dashed","dotted"] -
SetYAxisTickColor(strColor)
-
y轴刻度线颜色
Parameters:
Name Type Description strColor
String y轴刻度线颜色 Properties:
Name Type Description YAxisTickColor
Color "0xff333333" -
SetYAxisTickLength(nValue)
-
y轴刻度线长度
Parameters:
Name Type Description nValue
Number y轴刻度线长度 Properties:
Name Type Description YAxisTickLength
Number 5 -
SetYAxisTickType(strType)
-
y轴刻度线样式
Parameters:
Name Type Description strType
String y轴刻度线样式 Properties:
Name Type Description YAxisTickType
Combo ["solid","dashed","dotted"] -
SetYAxisTickWidth(nValue)
-
y轴刻度线宽度
Parameters:
Name Type Description nValue
Number y轴刻度线宽度 Properties:
Name Type Description YAxisTickwidth
Number 1