XUIBaseScatterChart()

Methods

AddOneScatterData(dX, dY)

添加一个数据
Parameters:
Name Type Description
dX Float X数据
dY Float Y数据

ChangeScatterData(nIndex, nXValue, nYValue)

修改散点数据
Parameters:
Name Type Description
nIndex Number 序号
nXValue Float x轴新值
nYValue Float y轴新值

ClearScatterData()

清空散点数据

DeleteDataByIndex(nIndex)

按序删除数据
Parameters:
Name Type Description
nIndex Number 序号

GetBaseScatterColor() → {String}

获取散点颜色
Returns:
String

GetCtrlBgColor() → {String}

获取背景颜色
Returns:
String

GetCtrlBgImg() → {String}

获取背景图片
Returns:
String

GetDataByIndex(nIndex) → {Array}

按序查找数据
Parameters:
Name Type Description
nIndex Number 序号
Returns:
Array - 数据

GetPicModel() → {String}

获取图片绘制模式
Returns:
String

GetSymbolSize() → {Number}

获取散点大小
Returns:
Number - 散点大小

GetTitleColor() → {String}

获取标题文本颜色
Returns:
String

GetTitleFontFamily() → {String}

获取标题文本字体
Returns:
String

GetTitleFontSize() → {Number}

获取标题文本大小
Returns:
Number

GetTitleFontWeight() → {String}

获取标题字体粗细
Returns:
String

GetTitlePositionLeft() → {String}

获取标题左偏移
Returns:
String

GetTitlePositionTop() → {String}

获取标题上偏移
Returns:
String

GetTitleText() → {String}

获取标题文本
Returns:
String

GetXAxisFontFamily() → {String}

获取x轴文本字体
Returns:
String - 文本字体

GetXAxisLableColor() → {String}

获取x轴文本颜色
Returns:
String

GetXAxisLableFontSize() → {Number}

获取x轴文本大小
Returns:
Number

GetXAxisLineColor() → {String}

获取x轴颜色
Returns:
String - x轴颜色

GetXAxisLineType() → {String}

获取x轴样式
Returns:
String

GetXAxisSplitLine() → {Boolean}

获取x轴分割线是否隐藏
Returns:
Boolean - 是否隐藏

GetXAxisSplitLineColor() → {String}

获取x轴分割线颜色
Returns:
String - 分割线颜色

GetXAxisSplitLineType() → {String}

获取x轴分割线样式
Returns:
String

GetXAxisTickColor() → {String}

获取x轴刻度线颜色
Returns:
String

GetXAxisTickLength() → {Number}

获取x轴刻度线长度
Returns:
Number

GetXAxisTickType() → {String}

获取x轴刻度线样式
Returns:
String

GetXAxisTickWidth() → {Number}

获取x轴刻度线宽度
Returns:
Number

GetYAxisFontFamily() → {String}

获取y轴文本字体
Returns:
String

GetYAxisLableColor() → {String}

获取y轴文本颜色
Returns:
String - 文本颜色

GetYAxisLableFontSize() → {Number}

获取y轴文本大小
Returns:
Number

GetYAxisLineColor() → {String}

获取y轴颜色
Returns:
String

GetYAxisLineType() → {String}

获取y轴样式
Returns:
String

GetYAxisSplitLine() → {Boolean}

获取y轴分割线是否隐藏
Returns:
Boolean - 是否隐藏

GetYAxisSplitLineColor() → {String}

获取y轴分割线颜色
Returns:
String

GetYAxisSplitLineType() → {String}

获取y轴分割线样式
Returns:
String

GetYAxisTickColor() → {String}

获取y轴刻度线颜色
Returns:
String

GetYAxisTickLength() → {Number}

获取y轴刻度线长度
Returns:
Number

GetYAxisTickType() → {String}

获取y轴刻度线样式
Returns:
String

GetYAxisTickWidth() → {Number}

获取y轴刻度线宽度
Returns:
Number

IsBgDrawColor() → {Boolean}

背景是否颜色绘制
Returns:
Boolean - 是否颜色绘制

SetBaseScatterColor(strColor)

散点颜色
Parameters:
Name Type Description
strColor String 散点颜色
Properties:
Name Type Description
baseScatterColor Color "0xffc23531"

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/XUIBaseScatterChart/images/bg.png"

SetDrawColor(bDrawColor)

背景颜色绘制
Parameters:
Name Type Description
bDrawColor Boolean
Properties:
Name Type Description
BgDrawColor Boolean true

SetPicModel(strModel)

图片绘制模式
Parameters:
Name Type Description
strModel String 绘制模式
Properties:
Name Type Description
PicModel Combo ["no-repeat","repeat-x","repeat-y","repeat"]

SetSomeScatterData(arrX, arrY)

设置数据
Parameters:
Name Type Description
arrX Array X数据
arrY Array Y数据

SetSymbolSize(nSize)

修改散点大小
Parameters:
Name Type Description
nSize Number 散点大小
Properties:
Name Type Description
symbolSize Number 20

SetTitle(strTitle)

标题文本
Parameters:
Name Type Description
strTitle String 标题内容
Properties:
Name Type Description
baseScatterTitle String ""

SetTitleColor(strColor)

标题文本颜色
Parameters:
Name Type Description
strColor String 标题文本颜色
Properties:
Name Type Description
TitleColor Color "0xff333333"

SetTitleFontFamily(strFamily)

标题文本字体
Parameters:
Name Type Description
strFamily String 标题字体
Properties:
Name Type Description
TitleFontFamily Combo ["sans-serif","serif","Arial","Microsoft YaHei","Courier New","monospace"]

SetTitleFontSize(nSize)

标题文本大小
Parameters:
Name Type Description
nSize Number 标题文本大小
Properties:
Name Type Description
BaseScatterTitleFontSize Number 18

SetTitleFontWeight(strFontWeight)

标题字体粗细
Parameters:
Name Type Description
strFontWeight String 标题字体粗细
Properties:
Name Type Description
fontWeight Combo ["normal","bold","bolder","lighter"]

SetTitlePositionLeft(strLeft)

标题距左侧
Parameters:
Name Type Description
strLeft String 离容器左距离
Properties:
Name Type Description
BaseScatterTitlePosition String "50%"

SetTitlePositionTop(strTop)

标题距上方
Parameters:
Name Type Description
strTop String 离容器上距离
Properties:
Name Type Description
BaseScatterTitlePositionTop String "5%"

SetXAxisFontFamily(strFamily)

x轴文本字体
Parameters:
Name Type Description
strFamily String 标题字体
Properties:
Name Type Description
XAxisFontFamily Combo ["sans-serif","serif","Arial","Microsoft YaHei","Courier New","monospace"]

SetXAxisLableColor(strColor)

x轴文本颜色
Parameters:
Name Type Description
strColor String x轴文本颜色
Properties:
Name Type Description
XAxisAxisLableColor Color "0xff333333"

SetXAxisLableFontSize(nValue)

x轴文本大小
Parameters:
Name Type Description
nValue Number 刻度文本大小
Properties:
Name Type Description
XAxisAxisLableFontSize Number 12

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"]

SetXAxisSplitLine(bXAxisSplitLine)

隐藏x轴分割线
Parameters:
Name Type Description
bXAxisSplitLine Boolean 隐藏分割线
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 刻度线颜色
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 刻度线宽度
Properties:
Name Type Description
xAxisTickwidth Number 1

SetYAxisFontFamily(strFamily)

y轴文本字体
Parameters:
Name Type Description
strFamily String 标题字体
Properties:
Name Type Description
YAxisFontFamily Combo ["sans-serif","serif","Arial","Microsoft YaHei","Courier New","monospace"]

SetYAxisLableColor(strColor)

y轴文本颜色
Parameters:
Name Type Description
strColor String y轴文本颜色
Properties:
Name Type Description
YAxisAxisLableColor Color "0xff333333"

SetYAxisLableFontSize(nValue)

y轴文本大小
Parameters:
Name Type Description
nValue Number 刻度文本大小
Properties:
Name Type Description
YAxisAxisLableFontSize Number 12

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"]

SetYAxisSplitLine(bYAxisSplitLine)

隐藏y轴分割线
Parameters:
Name Type Description
bYAxisSplitLine Boolean 隐藏分割线
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 刻度线颜色
Properties:
Name Type Description
yAxisTickColor Color "0xff333333"

SetYAxisTickLength(nValue)

y轴刻度线长度
Parameters:
Name Type Description
nValue Number 刻度线长度
Properties:
Name Type Description
YAxisTickLength Number 5

SetYAxisTickType(strType)

y轴刻度线样式
Parameters:
Name Type Description
strType String 刻度线样式
Properties:
Name Type Description
yAxisTickType Combo ["solid","dashed","dotted"]

SetYAxisTickWidth(nValue)

y轴刻度线宽度
Parameters:
Name Type Description
nValue Number 刻度线宽度
Properties:
Name Type Description
YAxisTickwidth Number 1