new XUICrossWiseBar()
Methods
-
AddData(strName, nValue, strColor, strBgColor)
-
添加数据
Parameters:
Name Type Description strName
String 数据名称 nValue
Number 数据值 strColor
String 柱子颜色 strBgColor
String 柱子背景颜色 -
ClearData()
-
清空数据
-
DeleteDataByIndex(nIndex)
-
按索引删除值
Parameters:
Name Type Description nIndex
Number -
SetBackgroundColor(strColor)
-
背景颜色
Parameters:
Name Type Description strColor
String Properties:
Name Type Description BackgroundColor
Color "0xff222939" -
SetBarBorderColor(strColor)
-
柱子边框颜色
Parameters:
Name Type Description strColor
String Properties:
Name Type Description BarBorderColor
Color "0xff464a49" -
SetBarBorderSize(nSize)
-
柱边框大小
Parameters:
Name Type Description nSize
Number Properties:
Name Type Description BarBorderSize
Number 1 -
SetBarHeight(nBarWidth)
-
柱子高度
Parameters:
Name Type Description nBarWidth
Number Properties:
Name Type Description BarHeight
Number 25 -
SetBothSizeGap(nTopGap, nBotGap)
-
柱子间距
Parameters:
Name Type Description nTopGap
Number 上间距 nBotGap
Number 下间距 Properties:
Name Type Description BothSizeGap
Collection [1,20] -
SetDataBgColorByIndex(nIndex, strColor)
-
按序设背景色
Parameters:
Name Type Description nIndex
Number 索引 strColor
String 数据背景颜色 Properties:
Name Type Description DataBgColor
Collection [0,"0xff1a3043"] -
SetDataByIndex(nIndex, nData)
-
按序设置数据
Parameters:
Name Type Description nIndex
Number 索引 nData
Number 数值 Properties:
Name Type Description SetDataByIndex
Collection [0,25] -
SetDataColorByIndex(nIndex, strColor)
-
按序设值颜色
Parameters:
Name Type Description nIndex
Number 索引 strColor
String 数据颜色 Properties:
Name Type Description DataColorByIndex
Collection [0,"0xff00a8ff"] -
SetLegendFontColor(strColor)
-
图例文本颜色
Parameters:
Name Type Description strColor
String Properties:
Name Type Description LegendFontColor
Color "0xffffffff" -
SetLegendFontSize(nSize)
-
图例文字大小
Parameters:
Name Type Description nSize
Number Properties:
Name Type Description LegendFontSize
Number 24 -
SetLegendIconShap(strShap)
-
图例形状
Parameters:
Name Type Description strShap
String Properties:
Name Type Description LegendIconShap
Combo ["rect","roundRect","circle","triangle","diamond","pin","arrow","none"] -
SetLegendIconSize(nSize)
-
图例icon大小
Parameters:
Name Type Description nSize
Number Properties:
Name Type Description LegendIconSize
Number 24 -
SetLegendPos(strLeft, strBottom)
-
图例位置
Parameters:
Name Type Description strLeft
String 距左侧百分比 strBottom
String 距下方百分比 Properties:
Name Type Description LegendPos
Collection ["center","2%"] -
SetMarkPosByIndex(nIndex, nOffsetX)
-
设置数据提示位置
Parameters:
Name Type Description nIndex
Number nOffsetX
Number -
SetMaxValue(nValue)
-
最大值
Parameters:
Name Type Description nValue
Number 100 Properties:
Name Type Description MaxValue
Number 100 -
SetRectSize(nSize)
-
翻页大小
Parameters:
Name Type Description nSize
Number Properties:
Name Type Description RectSize
Number 24