new XUIArrowsAbbrBar()
Methods
-
AddData(strName, strImage, nData)
-
增加一个数据
Parameters:
Name Type Description strName
String x轴数据名 strImage
ImageProp 图片路径 nData
Number 数据 Properties:
Name Type Description AddData
Collection ["","",15] -
DeleteData(nIndex)
-
删除一个数据
Parameters:
Name Type Description nIndex
Number x轴索引 -
GetAllDataByIndex() → {Array}
-
查找数据
Returns:
Array - 数据 -
GetDataByIndex(nIndex) → {Number}
-
查找一个数据
Parameters:
Name Type Description nIndex
Number x轴索引 Returns:
Number - 一个数据 -
ModifyDataByIndex(nIndex, nData)
-
修改一个数据
Parameters:
Name Type Description nIndex
Number x轴索引 nData
Number 数据 -
SetBarWidth(nWidth)
-
柱宽
Parameters:
Name Type Description nWidth
Number 柱宽 Properties:
Name Type Description BarWidth
Number 40 -
SetData(arrData)
-
数据
Parameters:
Name Type Description arrData
Array 数据 Properties:
Name Type Description Data
Array [0,0,0,0,0,0,0] -
SetDataFontColor(strColor)
-
数据字体颜色
Parameters:
Name Type Description strColor
String 字体颜色 Properties:
Name Type Description DataFontColor
Color "0xff3e78ec" -
SetDataFontSize(nSize)
-
数据字体大小
Parameters:
Name Type Description nSize
Number 字体大小 Properties:
Name Type Description DataFontSize
Number 16 -
SetPosition(arrPos)
-
图表位置
Parameters:
Name Type Description arrPos
Array 位置 -
SetXaxisFontColor(strColor)
-
x轴字体颜色
Parameters:
Name Type Description strColor
String 字体颜色 Properties:
Name Type Description XaxisFontColor
Color "0xff7c8db8" -
SetXaxisFontSize(nSize)
-
x轴字体大小
Parameters:
Name Type Description nSize
Number 字体大小 Properties:
Name Type Description XaxisFontSize
Number 16 -
SetXaxisImage(arrImage)
-
设置x轴图片路径
Parameters:
Name Type Description arrImage
Array 图片路径 Properties:
Name Type Description XaxisImage
Array ["common_2dChart/XUIArrowsAbbrBar/images/2020-01-31_165509.png","common_2dChart/XUIArrowsAbbrBar/images/2020-02-01_093620.png","common_2dChart/XUIArrowsAbbrBar/images/2020-02-01_094938.png","common_2dChart/XUIArrowsAbbrBar/images/2020-02-01_094950.png","common_2dChart/XUIArrowsAbbrBar/images/2020-02-01_094959.png","common_2dChart/XUIArrowsAbbrBar/images/2020-02-01_095007.png","common_2dChart/XUIArrowsAbbrBar/images/2020-02-01_095029.png"] -
SetXaxisImageByIndex(nIndex, strImage)
-
通过索引设置x轴图片路径
Parameters:
Name Type Description nIndex
Number x轴刻度索引 strImage
ImageProp 图片路径 -
SetXaxisImageSize(nSize)
-
x轴图片大小
Parameters:
Name Type Description nSize
Number 图片大小 Properties:
Name Type Description XaxisImageSize
Number 21 -
SetXaxisLineColor(strColor)
-
x轴线颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description XaxisLineColor
Color "0xff343b58" -
SetXaxisLineWidth(nWidth)
-
x轴线宽度
Parameters:
Name Type Description nWidth
Number 宽度 Properties:
Name Type Description XaxisLineWidth
Number 1 -
SetXaxisTickLable(arrLable)
-
x轴刻度标签
Parameters:
Name Type Description arrLable
Array 标签 Properties:
Name Type Description XaxisTickLable
Array ["示例1","示例2","示例3","示例4","示例5","示例6","示例7"] -
SetYaxisFontColor(strColor)
-
y轴字体颜色
Parameters:
Name Type Description strColor
String 字体颜色 Properties:
Name Type Description YaxisFontColor
Color "0xff0000ff" -
SetYaxisFontSize(nSize)
-
y轴字体大小
Parameters:
Name Type Description nSize
Number 字体大小 Properties:
Name Type Description YaxisFontSize
Number 16 -
SetYaxisLineColor(strColor)
-
y轴线颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description YaxisLineColor
Color "#0xff343b58" -
SetYaxisLineWidth(nWidth)
-
y轴线宽度
Parameters:
Name Type Description nWidth
Number 宽度 Properties:
Name Type Description YaxisLineWidth
Number 1 -
SetYaxisValueArea(nMin, nMax)
-
Y轴范围
Parameters:
Name Type Description nMin
Number 最小值 nMax
Number 最大值 Properties:
Name Type Description YaxisValueArea
Collection [0,600]