XUILineStepLine()

Methods

AddData(strName, arrData, strColor)

增加数据
Parameters:
Name Type Description
strName String 名称
arrData Array 数据
strColor String 颜色

AddXAxisData(arrData)

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

ChangeDataByName(strName, nIndex, nData)

通过名字修改数据
Parameters:
Name Type Description
strName String 线名
nIndex Number 要修改的位置的索引
nData Number 要修改的数据

RemoveAllData()

设置清空数据

RemoveDataByName(strName)

通过名字删除数据
Parameters:
Name Type Description
strName String 线名

SetBgColor(strColor)

设置背景色
Parameters:
Name Type Description
strColor String 背景色
Properties:
Name Type Description
BgColor Color "0xffffffff"

SetLegendFontColor(strColor)

图例文本颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
LegendFontColor Color "0xff333333"

SetLegendHorAlign(strHorAlign)

图例水平布局方式
Parameters:
Name Type Description
strHorAlign String 水平布局方式
Properties:
Name Type Description
LegendHorAlign Combo ["center","left","right"]

SetLegendOrient(strOrient)

图例布局朝向
Parameters:
Name Type Description
strOrient String 布局朝向
Properties:
Name Type Description
LegendOrient Combo ["horizontal","vertical"]

SetLegendVerAlign(strVerAlign)

图例竖直布局方式
Parameters:
Name Type Description
strVerAlign String 竖直布局方式
Properties:
Name Type Description
LegendVerAlign Combo ["bottom","middle","top"]

SetLineStepType(strType)

设置阶梯类型
Parameters:
Name Type Description
strType String 指定的线的类型
Properties:
Name Type Description
LineStep Combo ["start","middle","end"]

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

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"]

SetSubTitleFontColor(strColor)

副标题颜色
Parameters:
Name Type Description
strColor String 副标题颜色
Properties:
Name Type Description
SubTitleFontColor Color "0xffaaaaaa"

SetSubTitleFontSize(nSize)

副标题大小
Parameters:
Name Type Description
nSize Number 副标题大小
Properties:
Name Type Description
SubTitleFontSize Number 12

SetSubTitleText(strText)

副标题
Parameters:
Name Type Description
strText String 副标题名
Properties:
Name Type Description
SubTitleText String "示例副标题"

SetTitleFontColor(strColor)

主标题颜色
Parameters:
Name Type Description
strColor String 主标题颜色
Properties:
Name Type Description
TitleFontColor Color "0xff333333"

SetTitleFontSize(nSize)

主标题大小
Parameters:
Name Type Description
nSize Number 主标题大小
Properties:
Name Type Description
TitleFontSize Number 18

SetTitleText(strText)

主标题
Parameters:
Name Type Description
strText String 主标题名
Properties:
Name Type Description
TitleText String "示例主标题"

SetXAxisFontColor(strColor)

X轴文本颜色
Parameters:
Name Type Description
strColor String X轴文字颜色
Properties:
Name Type Description
XAxisFontColor Color "0xff000000"

SetXAxisFontSize(nSize)

X轴文本大小
Parameters:
Name Type Description
nSize Number X轴文字大小
Properties:
Name Type Description
XAxisTextSize Number 14

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 X轴名称大小
Properties:
Name Type Description
XAxisNameSize Number 12

SetXAxisSplitLineVisible(bVisible)

显示X轴分割线
Parameters:
Name Type Description
bVisible Boolean X轴分割线
Properties:
Name Type Description
XAxisSplitLineVisible Boolean false

SetYAxisFontColor(strColor)

Y轴文本颜色
Parameters:
Name Type Description
strColor String Y轴文字颜色
Properties:
Name Type Description
YAxisFontColor Color "0xff000000"

SetYAxisFontSize(nSize)

Y轴文本大小
Parameters:
Name Type Description
nSize Number Y轴文字大小
Properties:
Name Type Description
YAxisFontSize Number 14

SetYAxisName(strName)

Y轴名称
Parameters:
Name Type Description
strName String X轴命名
Properties:
Name Type Description
YAxisName String ""

SetYAxisNameSize(nSize)

Y轴名称大小
Parameters:
Name Type Description
nSize Number Y轴名称大小
Properties:
Name Type Description
YAxisNameSize Number 12

SetYAxisSplitLineVisible(bVisible)

显示Y轴分割线
Parameters:
Name Type Description
bVisible Boolean Y轴分割线
Properties:
Name Type Description
YAxisSplitLineVisible Boolean true