XUIBarYears()

new XUIBarYears()

Methods

AddGroupData(strGroup, arrData)

增加一组数据
Parameters:
Name Type Description
strGroup String 组名
arrData Array 数据

DeleteGroupData(nIndex)

删除一组数据
Parameters:
Name Type Description
nIndex Number 下标

SetAlignWithLabel(bAlign)

轴刻度标签对齐
Parameters:
Name Type Description
bAlign Boolean 是否对齐
Properties:
Name Type Description
AlignWithLabel Boolean true

SetAxisPointerStyle(strStyle)

指示器类型
Parameters:
Name Type Description
strStyle String 指示器类型
Properties:
Name Type Description
AxisPointerStyle Combo ["shadow","line"]

SetAxisTickColor(strColor)

x轴刻度线颜色
Parameters:
Name Type Description
strColor String 刻度线颜色
Properties:
Name Type Description
AxisTickColor Color "0xff000000"

SetAxisTickInside(bInside)

x轴刻度线朝向
Parameters:
Name Type Description
bInside Boolean 是否朝内
Properties:
Name Type Description
AxisTickInside Boolean true

SetAxisTickLength(nLength)

x轴刻度线长
Parameters:
Name Type Description
nLength Number 刻度宽度
Properties:
Name Type Description
AxisTickLength Number 5

SetAxisTickStyle(strStyle)

x轴刻度线样式
Parameters:
Name Type Description
strStyle String 刻度线样式
Properties:
Name Type Description
AxisTickStyle Combo ["solid","dashed","dotted"]

SetAxisTickWidth(nWidth)

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

SetBackgroundColor(strBackgroundColor)

背景颜色
Parameters:
Name Type Description
strBackgroundColor String 背景颜色
Properties:
Name Type Description
BackgroundColor Color "0xffffffff"

SetBarBgColorByIndex(nIndex, strColor)

柱状图颜色
Parameters:
Name Type Description
nIndex Number 序号
strColor String 柱状颜色
Properties:
Name Type Description
BarBgColor Collection [0,"0xff02efff"]

SetBarDataObj(nName, arrData)

增加一种示例数据
Parameters:
Name Type Description
nName String 示例数据名字
arrData Array 示例数据内容

SetBarDelete()

清除所有数据

SetBarWidthByIndex(nIndex, strWidth)

柱状图宽度
Parameters:
Name Type Description
nIndex Number 序号
strWidth String 柱状图宽度
Properties:
Name Type Description
BarWidth Collection [0,"20%"]

SetColumData(nIndexKind, nIndexData, nValue)

按序号改数据
Parameters:
Name Type Description
nIndexKind Number 种类序号
nIndexData Number 数据序号
nValue Float 数据值
Properties:
Name Type Description
ColumData Collection [0,0,43.3]

SetGridBgColor(strColor)

网格背景颜色
Parameters:
Name Type Description
strColor String 网格背景颜色
Properties:
Name Type Description
GridBgColor Color "0xffffffff"

SetIconShap(strShap)

图例形状
Parameters:
Name Type Description
strShap String
Properties:
Name Type Description
IconShap Combo ["roundRect","rect","circle","triangle","diamond","pin","arrow","none"]

SetLegendBarNameByIndex(nIndex, strName)

图例名称
Parameters:
Name Type Description
nIndex Number 序号
strName String 图例名字
Properties:
Name Type Description
LegendBarName Collection [0,"示例1"]

SetLegendLabelSize(nFont)

图例文本大小
Parameters:
Name Type Description
nFont Number 文本大小
Properties:
Name Type Description
nLegendFont Number 12

SetLegendTextColor(strLegendTextColor)

图例文本颜色
Parameters:
Name Type Description
strLegendTextColor String 图例的文本颜色
Properties:
Name Type Description
LegendTextColor Color "0xff333333"

SetSeriesBarData(nIndex, arrData)

柱状数据
Parameters:
Name Type Description
nIndex Number 序号
arrData Array 数据

SetToolTipBgColor(strColor)

提示框背景颜色
Parameters:
Name Type Description
strColor String 背景颜色
Properties:
Name Type Description
ToolTipBgColor Color "0xff6b6b6b"

SetToolTipBorderColor(strColor)

提示框边框颜色
Parameters:
Name Type Description
strColor String 边框颜色
Properties:
Name Type Description
ToolTipBorderColor Color "0x333333"

SetToolTipBorderWidth(nWidth)

提示框边框宽
Parameters:
Name Type Description
nWidth Number 边框大小
Properties:
Name Type Description
ToolTipBorderWidth Number 1

SetToolTipColor(strColor)

提示框文字颜色
Parameters:
Name Type Description
strColor String 文字颜色
Properties:
Name Type Description
ToolTipColor Color "0xffffffff"

SetToolTipFontSize(nSize)

提示框文字大小
Parameters:
Name Type Description
nSize Number 文字大小
Properties:
Name Type Description
ToolTipFontSize Number 14

SetxAxisData(arrData)

x轴类目名称
Parameters:
Name Type Description
arrData Array 类目数据

SetxAxisName(strName)

x轴数据标题
Parameters:
Name Type Description
strName String X轴名称
Properties:
Name Type Description
xAxisName String ""

SetxAxisNameSize(nSize)

x轴标题大小
Parameters:
Name Type Description
nSize Number 字体大小
Properties:
Name Type Description
xAxisNameSize Number 12

SetXLabelColor(strColor)

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

SetXLabelSize(nFont)

x轴文本大小
Parameters:
Name Type Description
nFont Number 文本大小
Properties:
Name Type Description
nXFont Number 12

SetyAxisName(strName)

y轴数据标题
Parameters:
Name Type Description
strName String Y轴名称
Properties:
Name Type Description
yAxisName String "示例名称"

SetyAxisNameSize(nSize)

y轴标题大小
Parameters:
Name Type Description
nSize Number 字体大小
Properties:
Name Type Description
yAxisNameSize Number 12

SetYAxisTickColor(strColor)

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

SetYAxisTickInside(bInside)

y轴刻度线朝向
Parameters:
Name Type Description
bInside Boolean 是否朝内
Properties:
Name Type Description
YAxisTickInside Boolean true

SetYAxisTickLength(nLength)

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

SetYAxisTickStyle(strStyle)

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

SetYAxisTickWidth(nWidth)

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

SetYLabelColor(strColor)

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

SetYLabelSize(nFont)

y轴文本大小
Parameters:
Name Type Description
nFont Number 文本大小
Properties:
Name Type Description
nYFont Number 12