XUIBasicBrokenLine()

Methods

AddLine(nYAxisIndex, strName, strColor, strBeginColor, strEndColor)

加线
Parameters:
Name Type Description
nYAxisIndex Number Y轴索引
strName String 线名
strColor String 线颜色
strBeginColor String 起始颜色
strEndColor String 终止颜色

AddLineDataByIndex(nLineIndex, dData)

根据线的索引加数据
Parameters:
Name Type Description
nLineIndex Number 索引
dData Double 数据

ClearData()

清空

DeleteLineByIndex(nIndex)

删除一条线
Parameters:
Name Type Description
nIndex Number 索引

SetBackgroundColor(strColor)

设置控件背景颜色
Parameters:
Name Type Description
strColor String
Properties:
Name Type Description
BackgroundColor Color "0xff09161c"

SetBgGridLineColor(strColor)

设置背景网格线颜色
Parameters:
Name Type Description
strColor String 背景网格线颜色
Properties:
Name Type Description
GridLineColor Color "0xff0f1623"

SetBgGridLineCount(nXCount, nYCount)

背景网格线个数
Parameters:
Name Type Description
nXCount Number x轴上的个数
nYCount Number Y轴上的个数
Properties:
Name Type Description
BgGridLineCount Collection [10, 10]

SetLineData(nLineIndex, strXData, dYData)

设置线的数据
Parameters:
Name Type Description
nLineIndex Number 索引
strXData String x轴数据
dYData Double y轴数据

SetLineDataByIndex(nLineIndex, arrData)

根据线的索引设置数据
Parameters:
Name Type Description
nLineIndex Number 索引
arrData Array 数据

SetXAxisData(arrData)

设置x轴数据
Parameters:
Name Type Description
arrData Array 数据

SetXAxisLabelColor(strColor)

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

SetXAxisLabelInterval(nInterval)

设置x轴文本显示间隔
Parameters:
Name Type Description
nInterval Number 间隔
Properties:
Name Type Description
XAxisLabelInterval Number 40

SetXAxisLabelSize(nSize)

x轴文本大小
Parameters:
Name Type Description
nSize Number 文本大小
Properties:
Name Type Description
XAxisLabelSize Number 14

SetXAxisLabelVisible(bVisible)

x轴文本显示标题
Parameters:
Name Type Description
bVisible Boolean x轴标题
Properties:
Name Type Description
XAxisLabel Boolean true

SetXAxisLineColor(strColor)

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

SetXAxisLineWidth(nWidth)

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

SetXAxisTitle(strTitle)

x轴标题
Parameters:
Name Type Description
strTitle String x轴标题
Properties:
Name Type Description
XAxisTitle String "x轴"

SetYAxisLabelColorByIndex(nIndex, strColor)

Y轴文本颜色
Parameters:
Name Type Description
nIndex Number 索引
strColor String x轴颜色
Properties:
Name Type Description
YAxisLabelColor Collection [0,"0xff2a4f9c"]

SetYAxisLabelSizeByIndex(nIndex, nSize)

Y轴文本大小
Parameters:
Name Type Description
nIndex Number 索引
nSize Number 文本大小
Properties:
Name Type Description
YAxisLabelSize Collection [0,14]

SetYAxisLineColorByIndex(nIndex, strColor)

Y轴线颜色
Parameters:
Name Type Description
nIndex Number 索引
strColor String 颜色
Properties:
Name Type Description
YAxisLineColor Collection [0,"0xff252d3c"]

SetYAxisLineWidthByIndex(nIndex, nWidth)

Y轴线宽
Parameters:
Name Type Description
nIndex Number 索引
nWidth Number 线宽
Properties:
Name Type Description
YAxisLineWidth Collection [0,1]

SetYAxisTitleByIndex(nIndex, strTitle)

y轴标题
Parameters:
Name Type Description
nIndex Number 索引
strTitle String 标题
Properties:
Name Type Description
YAxisTitle Collection [0,"y1"]

SetYAxisVisibleByIndex(nIndex, bVisible)

y轴是否显示
Parameters:
Name Type Description
nIndex Number 索引
bVisible Boolean 是否显示
Properties:
Name Type Description
YAxisVisible Collection [0,true]

ShowBgGridLine(bShowX, bShowY)

显示背景网格
Parameters:
Name Type Description
bShowX Boolean 是否显示纵向网格
bShowY Boolean 是否显示横向网格
Properties:
Name Type Description
ShowBgGridLine Collection [false, true]

ShowLineByIndex(nIndex, bShow)

设置线显示隐藏
Parameters:
Name Type Description
nIndex Number 线的下标
bShow Boolean 是否显示

ShowYAxisTickLineByIndex(nIndex, bShow)

显示Y轴刻度标记线
Parameters:
Name Type Description
nIndex Number 索引
bShow Boolean 是否显示
Properties:
Name Type Description
YAxisTickLine Boolean [0,true]