new XUIBubbleChart()
Methods
-
AddOneScatterData(nX, nY, nValue, strText, strName)
-
添加一个数据
Parameters:
Name Type Description nX
Float X数据 nY
Float Y数据 nValue
Number 散点大小 strText
String 数据描述 strName
String 系列名称 -
AddScatterData(arrData, strName)
-
添加散点数据
Parameters:
Name Type Description arrData
Array 散点数据 strName
String 系列名称 -
ClearScatterData()
-
清空散点数据
-
DeleteDataByIndex(nIndex, strName)
-
系列序号删数据
Parameters:
Name Type Description nIndex
Number 序号 strName
String 系列名称 -
DeleteDataByYearAndState(strState, strName)
-
按年份及国家删除数据
Parameters:
Name Type Description strState
String 国家名称 strName
String 系列名称 -
DeleteSCatterDataByName(strSeriesName)
-
按系列名称删除
Parameters:
Name Type Description strSeriesName
String 系列名称 -
GetDataByIndexAndName(nIndex, strName) → {Array}
-
系列序号查数据
Parameters:
Name Type Description nIndex
Number 序号 strName
String 系列名称 Returns:
Array - 数据 -
GetDataByYear(strYear) → {Array}
-
按年份查找数据
Parameters:
Name Type Description strYear
String 年份 Returns:
Array - 数据 -
GetDataByYearAndState(strYear, strState) → {Array}
-
按年份及国家查找数据
Parameters:
Name Type Description strYear
String 年份 strState
String 国家 Returns:
Array - 数据 -
SetBubbleChartTitle(strTitle)
-
标题
Parameters:
Name Type Description strTitle
String 标题内容 Properties:
Name Type Description BubbleChartTitle
String "1990 与 2015 年各国家人均寿命与 GDP" -
SetBubbleChartTitleColor(strColor)
-
标题颜色
Parameters:
Name Type Description strColor
String 标题颜色 Properties:
Name Type Description BubbleChartTitleColor
Color "0xff333333" -
SetBubbleChartTitleFontSize(nSize)
-
标题文本大小
Parameters:
Name Type Description nSize
Number 标题文本大小 Properties:
Name Type Description BubbleChartTitleFontSize
Number 18 -
SetBubbleChartTitleFontWeight(strFontWeight)
-
标题字体粗细
Parameters:
Name Type Description strFontWeight
String 标题字体粗细 Properties:
Name Type Description BubbleChartTitleFontWeight
Combo ["normal","bold","bolder","lighter"] -
SetBubbleChartTitlePositionLeft(strLeft)
-
标题距左侧
Parameters:
Name Type Description strLeft
String 距离容器左侧距离 Properties:
Name Type Description BubbleChartTitlePositionLeft
String "5%" -
SetBubbleChartTitlePositionTop(strTop)
-
标题距上方
Parameters:
Name Type Description strTop
String 离容器上距离 Properties:
Name Type Description BubbleChartTitlePositionTop
String "1%" -
SetCtrlBgColor(strGradientColorStart, strGradientColorEnd)
-
控件背景颜色
Parameters:
Name Type Description strGradientColorStart
String 渐变颜色起点 strGradientColorEnd
String 渐变颜色终点 Properties:
Name Type Description CtrlBgColor
Collection ["0xfff7f8fa","0xffcdd0d5"] -
SetCtrlBgImg(strBgImg)
-
背景图片
Parameters:
Name Type Description strBgImg
ImageProp 背景图片 Properties:
Name Type Description CtrlBgImg
ImageProp "echartsCase/XUIBubbleChart/images/bg.png" -
SetDataByYearAndState(strYear, strState, nXValue, nYValue)
-
按年份及国家修改数据
Parameters:
Name Type Description strYear
String 年份 strState
String 国家 nXValue
Float x轴新值 nYValue
Float y轴新值 -
SetDrawColor(bDrawColor)
-
背景颜色绘制
Parameters:
Name Type Description bDrawColor
Boolean Properties:
Name Type Description BgDrawColor
Boolean true -
SetEditScatterData(strSeriesName, nIndex, nXValue, nYValue)
-
修改散点数据
Parameters:
Name Type Description strSeriesName
String 系列名称 nIndex
Number 序号 nXValue
Float x轴新值 nYValue
Float y轴新值 -
SetLegendTextColor(strColor)
-
图例文本颜色
Parameters:
Name Type Description strColor
String 图例文本颜色 Properties:
Name Type Description LegendTextColor
Color "0xff333333" -
SetLegendTextSize(nSize)
-
图例文本大小
Parameters:
Name Type Description nSize
Number 图例文本大小 Properties:
Name Type Description LegendTextSize
Number 12 -
SetScatterColorByName(strSeriesName, strShadowColor, strGradientColorStart, strGradientColorEnd)
-
散点颜色
Parameters:
Name Type Description strSeriesName
string 系列名称 strShadowColor
string 阴影颜色 strGradientColorStart
string 渐变起点颜色 strGradientColorEnd
string 渐变终点颜色 Properties:
Name Type Description ScatterColor
Collection ["1990","0xff7F2432","0xfffb767b","0xffcc2e48"] -
SetSeriesLableColorByName(strColor, strSeriesName)
-
标签文本颜色
Parameters:
Name Type Description strColor
String 文本标签颜色 strSeriesName
String 系列名称 Properties:
Name Type Description LableColor
Collection ["0xff3C3C3C","1990"] -
SetSeriesLableFontSizeByName(nSize, strSeriesName)
-
标签文本大小
Parameters:
Name Type Description nSize
Number 文本标签大小 strSeriesName
String 系列名称 Properties:
Name Type Description LablefontSize
Collection [12,"1990"] -
SetTitleFontFamily(strFamily)
-
标题文本字体
Parameters:
Name Type Description strFamily
String 标题字体 Properties:
Name Type Description TitleFontFamily
Combo ["sans-serif","serif","Arial","Microsoft YaHei","Courier New","monospace"] -
SetXAxisAxisLabelColor(strColor)
-
x轴文本颜色
Parameters:
Name Type Description strColor
String x轴刻度标签颜色 Properties:
Name Type Description XAxisAxisLabelColor
Color "0xff333333" -
SetXAxisAxisLabelFontSize(nValue)
-
x轴文本大小
Parameters:
Name Type Description nValue
Number x轴刻度标签大小 Properties:
Name Type Description XAxisAxisLabelFontSize
Number 12 -
SetXAxisFontFamily(strFamily)
-
x轴文本字体
Parameters:
Name Type Description strFamily
String 文本字体 Properties:
Name Type Description XAxisFontFamily
Combo ["sans-serif","serif","Arial","Microsoft YaHei","Courier New","monospace"] -
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"] -
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 ["dashed","solid","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 x轴刻度线样式 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 -
SetYAxisAxisLabelColor(strColor)
-
y轴文本颜色
Parameters:
Name Type Description strColor
String y轴刻度标签颜色 Properties:
Name Type Description YAxisAxisLabelColor
Color "0xff333333" -
SetYAxisAxisLabelFontSize(nValue)
-
y轴文本大小
Parameters:
Name Type Description nValue
Number y轴刻度标签大小 Properties:
Name Type Description YAxisAxisLabelFontSize
Number 12 -
SetYAxisFontFamily(strFamily)
-
y轴文本字体
Parameters:
Name Type Description strFamily
String 文本字体 Properties:
Name Type Description YAxisFontFamily
Combo ["sans-serif","serif","Arial","Microsoft YaHei","Courier New","monospace"] -
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"] -
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 ["dashed","solid","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