new XUILineLogar()
Methods
-
AddDataForProp(arrData)
-
增加数据线
Parameters:
Name Type Description arrData
Array 增加数据 -
GetLineColor() → {String}
-
获取指定的线颜色
Returns:
String -
GetLineTpye() → {String}
-
获取线类型
Returns:
String -
GetLineWidth() → {Number}
-
获取线宽
Returns:
Number -
GetNodeSize() → {Number}
-
获取节点大小
Returns:
Number -
GetNodeType() → {String}
-
获取线节点类型
Returns:
String -
GetSubTextName() → {String}
-
获取副标题名
Returns:
String -
GetTextName() → {String}
-
获取主标题名
Returns:
String -
GetXAxisNameSize() → {Number}
-
获取X轴名称大小
Returns:
Number -
GetXAxisSplitLine() → {Boolean}
-
获取X轴分割线显示状态
Returns:
Boolean -
GetXAxisTextColor() → {String}
-
获取X轴文字颜色
Returns:
String -
GetXAxisTextSize() → {Number}
-
获取X轴文字大小
Returns:
Number -
GetXAxisValue() → {Array}
-
获取X轴刻度名
Returns:
Array -
GetYAxisNameSize() → {Number}
-
获取Y轴名称大小
Returns:
Number -
GetYAxisSplitLine() → {Boolean}
-
获取Y轴分割线显示状态
Returns:
Boolean -
GetYAxisTextColor() → {String}
-
获取Y轴文字颜色
Returns:
String -
GetYAxisTextSize() → {Number}
-
获取Y轴文字大小
Returns:
Number -
IsDrawColor(bColor)
-
是否颜色绘制
Parameters:
Name Type Description bColor
Boolean 是否颜色绘制 Properties:
Name Type Description DrawColor
Boolean true -
SetAddData(strName, nData)
-
增加数据分类
Parameters:
Name Type Description strName
String 增加的类名 nData
Array 增加的数据 -
SetBackgroundColor(strColor)
-
设置背景色
Parameters:
Name Type Description strColor
String 背景色 Properties:
Name Type Description BgColor
Color "0xffffffff" -
SetBackgroundImage(strImage)
-
设置背景图片
Parameters:
Name Type Description strImage
String 背景图片 Properties:
Name Type Description BackgroundImage
String "" -
SetClearData()
-
设置清空数据
-
SetData(strName, nIndex, nData)
-
通过名字修改数据
Parameters:
Name Type Description strName
String 线名 nIndex
Number 要修改的位置的索引 nData
Number 要修改的数据 -
SetLineColor(strName, strColor)
-
设置指定的线颜色
Parameters:
Name Type Description strName
String 分类的名字 strColor
String 指定的线颜色 Properties:
Name Type Description LineColor
Collection ["示例一","0xffff0000"] -
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(strType)
-
设置线节点类型
Parameters:
Name Type Description strType
String 线节点类型 Properties:
Name Type Description NodeType
Combo ["emptyCircle","rect","circle","roundRect", "triangle", "diamond", "pin", "arrow", "none"] -
SetPicModel(strModel)
-
图片绘制模式
Parameters:
Name Type Description strModel
String 绘制模式 Properties:
Name Type Description PicModel
Combo ["no-repeat","repeat-x","repeat-y","repeat"] -
SetRemoveClass(nClass)
-
删除数据分类
Parameters:
Name Type Description nClass
Number 要删除的分类的索引 -
SetRemoveClassByName(strName)
-
通过名字删除数据
Parameters:
Name Type Description strName
String 线名 Properties:
Name Type Description RemoveClassByName
String "线名" -
SetSubTextName(strName)
-
设置副标题名
Parameters:
Name Type Description strName
String 副标题名 Properties:
Name Type Description SubTextName
String "示例副标题" -
SetTextName(strName)
-
设置主标题名
Parameters:
Name Type Description strName
String 主标题名 Properties:
Name Type Description TextName
String "示例主标题" -
SetXAxisNameSize(nSize)
-
设置X轴名称大小
Parameters:
Name Type Description nSize
Number X轴名称大小 Properties:
Name Type Description XAxisNameSize
Number 12 -
SetXAxisSplitLine(bShow)
-
设置是否显示X轴分割线
Parameters:
Name Type Description bShow
Boolean X轴分割线 Properties:
Name Type Description XAxisSplitLine
Boolean false -
SetXAxisTextColor(strColor)
-
设置X轴文字颜色
Parameters:
Name Type Description strColor
String X轴文字颜色 Properties:
Name Type Description XAxisTextColor
Color "0xff000000" -
SetXAxisTextSize(nSize)
-
设置X轴文字大小
Parameters:
Name Type Description nSize
Number X轴文字大小 Properties:
Name Type Description XAxisTextSize
Number 14 -
SetXAxisValue(arrName)
-
设置X轴刻度名
Parameters:
Name Type Description arrName
Array 刻度名 Properties:
Name Type Description XAxisName
Array ["一", "二", "三", "四", "五", "六", "七", "八", "九"] -
SetYAxisNameSize(nSize)
-
设置Y轴名称大小
Parameters:
Name Type Description nSize
Number Y轴名称大小 Properties:
Name Type Description YAxisNameSize
Number 12 -
SetYAxisSplitLine(bShow)
-
设置是否显示Y轴分割线
Parameters:
Name Type Description bShow
Boolean Y轴分割线 Properties:
Name Type Description YAxisSplitLine
Boolean true -
SetYAxisTextColor(strColor)
-
设置Y轴文字颜色
Parameters:
Name Type Description strColor
String Y轴文字颜色 Properties:
Name Type Description YAxisTextColor
Color "0xff000000" -
SetYAxisTextSize(nSize)
-
设置Y轴文字大小
Parameters:
Name Type Description nSize
Number Y轴文字大小 Properties:
Name Type Description YAxisTextSize
Number 14