XUILineCategory()

Methods

SetAlignWithLabel(choice)

设置刻度线是否与标签对齐
Parameters:
Name Type Description
choice Boolean 是否对齐
Properties:
Name Type Description
AlignWithLabel Combo [true,false]

SetAxisPointerStyle(strStyle)

改变坐标指示器类型
Parameters:
Name Type Description
strStyle String 指示器类型
Properties:
Name Type Description
AxisPointerStyle Combo ["shadow","line","none","cross"]

SetAxisTickColor(TickColor)

设置刻度线颜色
Parameters:
Name Type Description
TickColor String 刻度线颜色
Properties:
Name Type Description
AxisTickColor Color "0xff000000"

SetAxisTickInside(screen)

设置刻度线是否朝内
Parameters:
Name Type Description
screen Boolean 是否朝内
Properties:
Name Type Description
AxisTickInside Combo [true,false]

SetAxisTickStyle(TickStyle)

设置刻度线样式
Parameters:
Name Type Description
TickStyle String 刻度线样式
Properties:
Name Type Description
AxisTickStyle Combo ["solid","dashed","dotted"]

SetAxisTickWidth(TickWidth)

设置刻度线宽度
Parameters:
Name Type Description
TickWidth Number 刻度宽度
Properties:
Name Type Description
AxisTickWidth Number 1

SetBarDataObj(nName, arrData)

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

SetBarDelete()

清除所有数据

SetDataNameByOldName(strOldName, strNewName)

设置柱状图第图例名称
Parameters:
Name Type Description
strOldName String 旧的图例名称
strNewName String 新的图例名称

SetLineTpye(sType)

设置线类型
Parameters:
Name Type Description
sType String 线类型
Properties:
Name Type Description
LineTpye Combo ["solid","dashed","dotted"]

SetLineWidth(nWidth)

设置线宽
Parameters:
Name Type Description
nWidth Number 线宽
Properties:
Name Type Description
LineWidth Number 2

SetLinexData(strNewName, nNewSize)

新增X轴数据
Parameters:
Name Type Description
strNewName String 数据名称
nNewSize Number 数据值

SetNodeSize(nSize)

设置节点大小
Parameters:
Name Type Description
nSize Number 节点大小
Properties:
Name Type Description
NodeSize Number 4

SetNodeType(sType)

设置线节点类型
Parameters:
Name Type Description
sType String 线节点类型
Properties:
Name Type Description
NodeType Combo ["emptyCircle","rect","circle","roundRect", "triangle", "diamond", "pin", "arrow", "none"]

SetseriesFirstData(arrLinetData)

设置折线图数据
Parameters:
Name Type Description
arrLinetData Array 折线图数据

SetserieslineStyleColor(strSerieslineStyleColor)

设置折线图折线颜色
Parameters:
Name Type Description
strSerieslineStyleColor String 折线图折线颜色
Properties:
Name Type Description
lineStyle Color "0xff000000"

SetToolTipBgColor(TipBgColor)

改变提示框背景颜色
Parameters:
Name Type Description
TipBgColor String 背景颜色
Properties:
Name Type Description
ToolTipBgColor Color "0xFF6F6F6F"

SetToolTipBorderColor(TipBorderColor)

改变提示框边框颜色
Parameters:
Name Type Description
TipBorderColor String 边框颜色
Properties:
Name Type Description
ToolTipBorderColor Color "0xFF333333"

SetToolTipBorderWidth(BorderWidth)

改变提示框边框大小
Parameters:
Name Type Description
BorderWidth Number 边框大小
Properties:
Name Type Description
ToolTipBorderWidth Number 1

SetToolTipColor(TipColor)

改变提示框文字颜色
Parameters:
Name Type Description
TipColor String 文字颜色
Properties:
Name Type Description
ToolTipColor Color "0xFFFFFFFF"

SetToolTipFontSize(FontSize)

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

SetXAxisSize(XAxisSize)

设置X轴文字大小
Parameters:
Name Type Description
XAxisSize Number X轴文字大小
Properties:
Name Type Description
XAxisTextSize Number 14

SetyAxisData(arrData)

设置y轴类目数据
Parameters:
Name Type Description
arrData Array 类目数据

SetyAxisSize(yAxisSize)

设置y轴文字大小
Parameters:
Name Type Description
yAxisSize Number X轴文字大小
Properties:
Name Type Description
yAxisTextSize Number 14