new XUIBarLine()
Methods
-
AddData(arrValue)
-
增加数据
Parameters:
Name Type Description arrValue
Array 数据 -
animationChange()
-
数据改变动画
-
DeleteAllData()
-
删除所有折线数据
-
DeleteDataByIndex(nIndex)
-
删除一个数据
Parameters:
Name Type Description nIndex
Number 数据下标 -
GetAllData() → {Array}
-
查询所有数据
Returns:
Array - 数据 -
GetDataByIndex(nIndex) → {Number}
-
查询一个数据
Parameters:
Name Type Description nIndex
Number 数据下标 Returns:
Number - 一个数据 -
SetBarColor(strColor)
-
设置背景柱颜色
Parameters:
Name Type Description strColor
String 背景柱颜色 Properties:
Name Type Description BarColor
Color "0xff0d1d32" -
SetBarMaxValue(nValue)
-
设置背景柱最大值
Parameters:
Name Type Description nValue
Number 最大值 Properties:
Name Type Description BarMaxValue
Number 20 -
SetBarWidth(nWidth)
-
设置背景柱柱宽
Parameters:
Name Type Description nWidth
Number 柱宽 Properties:
Name Type Description BarWidth
Number 2 -
SetLegendIconSize(nWidth, nHeight)
-
设置图标大小
Parameters:
Name Type Description nWidth
Number 宽度 nHeight
Number 高度 Properties:
Name Type Description LegendIconSize
Collection [30,30] -
SetLegendPosition(nIndex, strTop, strLeft)
-
设置图例位置
Parameters:
Name Type Description nIndex
Number 下标 strTop
String 垂直位置 strLeft
String 水平位置 Properties:
Name Type Description LegendPosition
Collection [0,"2%","1%"] -
SetLegendTextColor(nIndex, strColor)
-
设置图例文字颜色
Parameters:
Name Type Description nIndex
Number 下标 strColor
String 文字颜色 Properties:
Name Type Description LegendTextColor
Collection [0,"0xffc9cdea"] -
SetLegendTextSize(nIndex, nSize)
-
设置图例文字大小
Parameters:
Name Type Description nIndex
Number 下标 nSize
Number 字体大小 Properties:
Name Type Description LegendTextSize
Collection [0,16] -
SetLineAreaColor(strColor)
-
设置区域填充色
Parameters:
Name Type Description strColor
String 区域填充色 Properties:
Name Type Description LineAreaColor
Color "0xffffffff" -
SetLineColor(strColor)
-
设置折线颜色
Parameters:
Name Type Description strColor
String 折线颜色 Properties:
Name Type Description LineColor
Color "0xff4d7caa" -
SetLineData(arrData)
-
设置折线数据
Parameters:
Name Type Description arrData
Array 折线数据 Properties:
Name Type Description LineData
Array [9, 10, 11, 12, 13, 13.5, 12, 11, 10, 9, 11, 11.5] -
SetLineDataByIndex(nIndex, nValue)
-
通过下标修改数据
Parameters:
Name Type Description nIndex
Number 下标 nValue
Number 数据 Properties:
Name Type Description LineDataByIndex
Collection [0,9] -
SetLineItemBorderColor(strColor)
-
设置折线拐点边框色
Parameters:
Name Type Description strColor
String 拐点边框色 Properties:
Name Type Description LineItemBorderColor
Color "0xff00101e" -
SetLineItemBorderWidth(nWidth)
-
设置折线拐点边框宽度
Parameters:
Name Type Description nWidth
Number 拐点边框宽度 Properties:
Name Type Description LineItemBorderWidth
Number 2 -
SetLineItemColor(strColor)
-
设置折线拐点颜色
Parameters:
Name Type Description strColor
String 拐点颜色 Properties:
Name Type Description LineItemColor
Color "0xff6acac1" -
SetLineItemSize(nSize)
-
设置折线拐点大小
Parameters:
Name Type Description nSize
Number 拐点大小 Properties:
Name Type Description LineItemSize
Number 5 -
SetLineWidth(nWidth)
-
设置折线宽度
Parameters:
Name Type Description nWidth
Number 折线宽度 Properties:
Name Type Description LineWidth
Number 2