XUIAbbrBar()

new XUIAbbrBar()

Methods

GetDataAll() → {Array}

获取全部数据
Returns:
Array - 全部数据

GetDataByIndex(nIndex) → {Array}

获取一组数据
Parameters:
Name Type Description
nIndex Number 索引
Returns:
Array - 一组数据

GetXaxisLableByIndex(nIndex) → {String}

获取x轴一组标签
Parameters:
Name Type Description
nIndex Number 标签索引
Returns:
String - x轴一组标签

GetXaxisTickLable() → {Array}

获取x轴刻度标签
Returns:
Array - x轴刻度标签

SetBarHeight(nHeight)

柱高
Parameters:
Name Type Description
nHeight Number 柱高
Properties:
Name Type Description
BarHeight Number 100

SetBarWidth(nWidth)

柱宽
Parameters:
Name Type Description
nWidth Number 柱宽
Properties:
Name Type Description
BarWidth Number 20

SetData(arrData)

数据
Parameters:
Name Type Description
arrData Array 数据
Properties:
Name Type Description
Data Array [0,0,0]

SetDataByIndex(nIndex, nData)

修改一组数据
Parameters:
Name Type Description
nIndex Number 索引
nData Number 数据
Properties:
Name Type Description
DataByIndex Collection [0,0]

SetDataFontColor(strColor)

数据字体颜色
Parameters:
Name Type Description
strColor String 字体颜色
Properties:
Name Type Description
DataFontColor Color "0xff3E78EC"

SetDataFontSize(nSize)

数据字体大小
Parameters:
Name Type Description
nSize Number 字体大小
Properties:
Name Type Description
DataFontSize Number 10

SetDataLabelInterval(nInterval)

设置数据显示间隔
Parameters:
Name Type Description
nInterval Number 显示间隔
Properties:
Name Type Description
DataLabelInterval Number 0

SetDataLabelPadding(arrPad)

设置数据框内边距
Parameters:
Name Type Description
arrPad Array 内边距
Properties:
Name Type Description
DataLabelPadding Array [15,30,10,30]

SetPosition(arrPos)

图表位置
Parameters:
Name Type Description
arrPos Array 位置
Properties:
Name Type Description
Position Array [0,0,0,0]

SetXaxisFontColor(strColor)

x轴字体颜色
Parameters:
Name Type Description
strColor String 字体颜色
Properties:
Name Type Description
XaxisFontColor Color "0xff7C8DB8"

SetXaxisFontSize(nSize)

x轴字体大小
Parameters:
Name Type Description
nSize Number 字体大小
Properties:
Name Type Description
XaxisFontSize Number 12

SetXAxisLabelInterval(nInterval)

设置x轴名显示间隔
Parameters:
Name Type Description
nInterval Number 显示间隔
Properties:
Name Type Description
XAxisLabelInterval Number 0

SetXaxisLableByIndex(nIndex, strName)

x轴一组标签
Parameters:
Name Type Description
nIndex Number 标签索引
strName String 标签
Properties:
Name Type Description
XaxisLableByIndex Collection [0,"示例数据1"]

SetXaxisLineColor(strColor)

x轴线颜色
Parameters:
Name Type Description
strColor String 字体颜色
Properties:
Name Type Description
XaxisLineColor Color "0xff343B58"

SetXaxisLineWidth(nWidth)

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

SetXaxisTickLable(arrLable)

x轴刻度标签
Parameters:
Name Type Description
arrLable Array 标签
Properties:
Name Type Description
XaxisTickLable Array ["示例数据1", "示例数据2", "示例数据3"]

SetYaxisLineColor(strColor)

y轴线颜色
Parameters:
Name Type Description
strColor String 字体颜色
Properties:
Name Type Description
YaxisLineColor Color "0xff343B58"

SetYaxisLineWidth(nWidth)

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

SetYaxisName(strName)

y轴名字
Parameters:
Name Type Description
strName String 名字
Properties:
Name Type Description
YaxisName String "时间/天"

SetYaxisNameColor(strColor)

y轴名字颜色
Parameters:
Name Type Description
strColor String 字体颜色
Properties:
Name Type Description
YaxisNameColor Color "0xff343B58"

SetYaxisNamePosition(strPosition)

y轴名字位置
Parameters:
Name Type Description
strPosition String 名字位置
Properties:
Name Type Description
YaxisNamePosition String "middle"

SetYaxisNameSize(nSize)

y轴名字大小
Parameters:
Name Type Description
nSize Number 字体大小
Properties:
Name Type Description
YaxisNameSize Number 14