XUIBothBrokenLine()

Methods

AddData(arrXData, arrData)

增加数据
Parameters:
Name Type Description
arrXData Array x数据
arrData Array y数据

ClearData()

清空

DeleteDataByIndex(nIndex)

删除一个数据
Parameters:
Name Type Description
nIndex Number 索引

GetBackgroundColor() → {String}

获得背景颜色
Returns:
String

GetBackgroundImage() → {String}

获得背景图
Returns:
String

GetBorderColor() → {String}

获得边框颜色
Returns:
String

GetBorderWidth() → {Number}

获得边框宽度
Returns:
Number

GetBrokenLineColor() → {String}

获得折线的颜色
Returns:
String

GetBrokenLineWidth() → {Number}

获得折线的宽度
Returns:
Number

GetCenterBackgroundImg() → {String}

获得中间背景图
Returns:
String

GetCenterBgColor() → {String}

获得中间背景色
Returns:
String

GetCenterPicModel() → {String}

获得中间背景图绘制模式
Returns:
String

GetData() → {Array}

获得数据
Returns:
Array

GetDataByIndex(nIndex) → {Number}

获得单个数据
Parameters:
Name Type Description
nIndex Number 索引
Returns:
Number

GetFontSize() → {Number}

获得字体大小
Returns:
Number

GetPicModel() → {String}

获得背景图绘制模式
Returns:
String

GetRampColor() → {Array}

获得折线区域渐变色
Returns:
Array

GetXAxisLineColor() → {String}

获得x轴颜色
Returns:
String

GetXAxisLineWidth() → {Number}

获得x轴宽度
Returns:
Number

GetXAxisTickColor() → {String}

获得x轴刻度颜色
Returns:
String

GetXAxisTickLength() → {Number}

获得x轴刻度长度
Returns:
Number

GetXAxisTickWidth() → {Number}

获得x轴刻度宽度
Returns:
Number

GetYAxisLineColor() → {String}

获得y轴颜色
Returns:
String

GetYAxisLineWidth() → {Number}

获得y轴宽度
Returns:
Number

GetYAxisTickColor() → {String}

获得y轴刻度颜色
Returns:
String

GetYAxisTickLength() → {Number}

获得y轴刻度长度
Returns:
Number

GetYAxisTickWidth() → {Number}

获得y轴刻度宽度
Returns:
Number

IsDrawBgColor() → {Boolean}

获得背景绘制
Returns:
Boolean

IsDrawCenterBg() → {Boolean}

获得中间背景绘制
Returns:
Boolean

IsReversalYAxis() → {Boolean}

获取y轴是否反转
Returns:
Boolean - 是否反转

IsShowXAxisLine() → {Boolean}

获得是否显示x轴
Returns:
Boolean

IsShowXAxisTick() → {Boolean}

获得显示x轴刻度
Returns:
Boolean

IsShowYAxisLine() → {Boolean}

获得是否显示y轴
Returns:
Boolean

IsShowYAxisTick() → {Boolean}

获得显示Y轴刻度
Returns:
Boolean

IsXAxisTickDirection() → {Boolean}

获得x轴刻度方向
Returns:
Boolean

IsYAxisTickDirection() → {Boolean}

获得y轴刻度方向
Returns:
Boolean

ScientificNotationFormat(bScientificNotation, nNum)

科学计数法显示
Parameters:
Name Type Description
bScientificNotation Boolean 是否是科学计数法
nNum Number 精度

SetBackgroundColor(strColor)

背景颜色
Parameters:
Name Type Description
strColor String
Properties:
Name Type Description
BackgroundColor Color "0xff0f1a31"

SetBackgroundImage(strImage)

背景图
Parameters:
Name Type Description
strImage ImageProp
Properties:
Name Type Description
BackgroundImage ImageProp "echartsCase/XUIBaseScatterChart/images/2020-01-17_101005.png"

SetBorderColor(strColor)

边框颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
BorderColor Color "0xff2671b9"

SetBorderWidth(nWidth)

边框宽度
Parameters:
Name Type Description
nWidth Number 宽度
Properties:
Name Type Description
BorderWidth Number 1

SetBrokenLineColor(strColor)

折线的颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
BrokenLineColor Color "0xffafbb4d"

SetBrokenLineWidth(nWidth)

折线的宽度
Parameters:
Name Type Description
nWidth Number 宽度
Properties:
Name Type Description
BrokenLineWidth Number 1

SetCenterBackgroundImg(strUrl)

中间背景图
Parameters:
Name Type Description
strUrl ImageProp
Properties:
Name Type Description
CenterBackgroundImg ImageProp ""

SetCenterBgColor(strColor)

中间背景色
Parameters:
Name Type Description
strColor String
Properties:
Name Type Description
CenterBgColor Color "0x00000000"

SetCenterPicModel(strModel)

中间背景图绘制模式
Parameters:
Name Type Description
strModel String 绘制模式
Properties:
Name Type Description
CenterPicModel Combo ["no-repeat","repeat-x","repeat-y","repeat"]

SetData(arrData)

数据
Parameters:
Name Type Description
arrData Array 数据

SetDataByIndex(nIndex, dData)

单个数据
Parameters:
Name Type Description
nIndex Number 索引
dData Double 数据

SetDrawBgColor(bDraw)

背景绘制
Parameters:
Name Type Description
bDraw Boolean true背景色false背景图
Properties:
Name Type Description
DrawBgColor Boolean true

SetDrawCenterBg(bDraw)

中间背景绘制
Parameters:
Name Type Description
bDraw Boolean true背景色false背景图
Properties:
Name Type Description
DrawCenterBg Boolean true

SetFontSize(nSize)

字体大小
Parameters:
Name Type Description
nSize Number 字体大小
Properties:
Name Type Description
FontSize Number 16

SetGap(nLeft, nTop, nRight, nBottom)

设置内边距
Parameters:
Name Type Description
nLeft Number 左边距
nTop Number 上边距
nRight Number 右边距
nBottom Number 下边距
Properties:
Name Type Description
Gap Collection [0,25,0 ,30]

SetPicModel(strModel)

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

SetRampColor(strColor1, strColor2)

折线区域渐变色
Parameters:
Name Type Description
strColor1 String 最下面的颜色
strColor2 String 最上面的颜色
Properties:
Name Type Description
RampColor Collection ["0x37b9433","0xd998ae37"]

SetReversalYAxis(bReversal)

是否反转y轴
Parameters:
Name Type Description
bReversal Boolean true反转,false不反转
Properties:
Name Type Description
ReversalYAxis Boolean false

SetShowXAxisLine(bShow)

是否显示x轴
Parameters:
Name Type Description
bShow Boolean true显示,false不显示
Properties:
Name Type Description
ShowXAxisLine Boolean true

SetShowXAxisTick(bShow)

显示x轴刻度
Parameters:
Name Type Description
bShow Boolean true显示,false不显示
Properties:
Name Type Description
ShowXAxisTick Boolean true

SetShowYAxisLine(bShow)

是否显示y轴
Parameters:
Name Type Description
bShow Boolean true显示,false不显示
Properties:
Name Type Description
ShowYAxisLine Boolean false

SetShowYAxisTick(bShow)

是否显示Y轴刻度
Parameters:
Name Type Description
bShow Boolean true显示false不显示
Properties:
Name Type Description
ShowYAxisTick Boolean false

SetXAxisLineColor(strColor)

x轴颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
XAxisLineColor Color "0xffdddddd"

SetXAxisLineWidth(nWidth)

x轴宽度
Parameters:
Name Type Description
nWidth Number 宽度
Properties:
Name Type Description
XAxisLineWidth Number 1

SetXAxisText(nIndex, strText)

x轴文字
Parameters:
Name Type Description
nIndex Number 索引
strText String 文字

SetXAxisTickColor(strColor)

x轴刻度颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
XAxisTickColor Color "0xffdddddd"

SetXAxisTickDirection(bInside)

x轴刻度方向
Parameters:
Name Type Description
bInside Boolean true向内,false向外
Properties:
Name Type Description
XAxisTickDirection Boolean true

SetXAxisTickLength(nLength)

x轴刻度长度
Parameters:
Name Type Description
nLength Number 长度
Properties:
Name Type Description
XAxisTickLength Number 5

SetXAxisTickWidth(nWidth)

x轴刻度宽度
Parameters:
Name Type Description
nWidth Number 宽度
Properties:
Name Type Description
XAxisTickWidth Number 1

SetYAxisLineColor(strColor)

y轴颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
YAxisLineColor Color "0xff2f3b5c"

SetYAxisLineWidth(nWidth)

y轴宽度
Parameters:
Name Type Description
nWidth Number 宽度
Properties:
Name Type Description
YAxisLineWidth Number 1

SetYAxisScope(nMin, nMax)

Y轴范围
Parameters:
Name Type Description
nMin Double 最小值
nMax Double 最大值

SetYAxisTickColor(strColor)

y轴刻度颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
YAxisTickColor Color "0xff2f3b5c"

SetYAxisTickDirection(bInside)

y轴刻度方向
Parameters:
Name Type Description
bInside Boolean true向内,false向外
Properties:
Name Type Description
YAxisTickDirection Boolean false

SetYAxisTickLength(nLength)

y轴刻度长度
Parameters:
Name Type Description
nLength Number 长度
Properties:
Name Type Description
YAxisTickLength Number 10

SetYAxisTickWidth(nWidth)

y轴刻度宽度
Parameters:
Name Type Description
nWidth Number 颜色
Properties:
Name Type Description
YAxisTickWidth Number 1

SetYScientificCountThreshold(nMin, nMax, nPre)

y轴科学计数阀值
Parameters:
Name Type Description
nMin Number 最小阀值
nMax Number 最大阀值
nPre Number 精度