new XUILineMobile()
Methods
-
SetAxisPointerStyle(strStyle)
-
改变坐标指示器类型
Parameters:
Name Type Description strStyle
String 指示器类型 Properties:
Name Type Description AxisPointerStyle
Combo ["shadow","line","none","cross"] -
SetbackgroundColor(strbackgroundColor)
-
改变背景颜色
Parameters:
Name Type Description strbackgroundColor
String 背景颜色 Properties:
Name Type Description seriesLeftNumColor
Color "0xff000000" -
SetBarDataObj(nName, nData)
-
增加一条示例数据
Parameters:
Name Type Description nName
String 示例数据名字 nData
Array 示例数据内容 -
SetBarDelete()
-
清除所有数据
-
SetData(strName, nData)
-
通过名字修改数据
Parameters:
Name Type Description strName
String 线名 nData
Array 要修改的数据 -
SetlineStyleColor(strlineStyleColor)
-
改变标记线的颜色
Parameters:
Name Type Description strlineStyleColor
String 标记线的颜色 Properties:
Name Type Description lineStyleColor
Color "0xff000000" -
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"] -
SetTitleColor(TitleColor)
-
改变标题字体颜色
Parameters:
Name Type Description TitleColor
String 字体颜色 Properties:
Name Type Description TitleColor
Color "0xff000000" -
SetTitleSubText(strsubText)
-
改变副标题字体内容
Parameters:
Name Type Description strsubText
String 副标题字体内容 Properties:
Name Type Description TitlesubText
String "示例副标题" -
SetTitleText(TitleText)
-
改变标题字体内容
Parameters:
Name Type Description TitleText
String 字体内容 Properties:
Name Type Description TitleText
String "示例标题" -
SetToolTipBgColor(strColor)
-
改变提示框背景颜色
Parameters:
Name Type Description strColor
String 背景颜色 Properties:
Name Type Description ToolTipBgColor
Color "0xFF6F6F6F" -
SetToolTipBorderColor(strColor)
-
改变提示框边框颜色
Parameters:
Name Type Description strColor
String 边框颜色 Properties:
Name Type Description ToolTipBorderColor
Color "0xFF333333" -
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 类目数据