new XUIColumnar()
Methods
-
AddData(strName, nData)
-
增加一组数据
Parameters:
Name Type Description strName
String x轴名称 nData
Number 数据 -
DelDataAll()
-
删除全部数据
-
DelDataByIndex(nIndex)
-
删除一组数据
Parameters:
Name Type Description nIndex
Number 索引 -
GetColumnHeight() → {Number}
-
获取背景柱高度
Returns:
Number - 背景柱高度 -
GetDataAll() → {Array}
-
获取全部数据
Returns:
Array - 全部数据 -
GetDataByIndex(nIndex) → {Number}
-
获取一组数据
Parameters:
Name Type Description nIndex
Number 索引 Returns:
Number - 一组数据 -
GetxAxisNameAll() → {Array}
-
获取X轴数据名字
Returns:
Array - 一组数据 -
GetxAxisNameByIndex(nIndex) → {Number}
-
获取一组数据
Parameters:
Name Type Description nIndex
Number 索引 Returns:
Number - 一组数据 -
SetAxisMargin(nAxisMargin)
-
设置刻度标签与轴线之间的距离
Parameters:
Name Type Description nAxisMargin
Number 刻度标签与轴线间距离 Properties:
Name Type Description AxisMargin
Number 25 -
SetAxisTextColor(strColor)
-
设置刻度标签字体颜色
Parameters:
Name Type Description strColor
String 刻度标签字体颜色 Properties:
Name Type Description AxisTextColor
Color "0xff7B8DB9" -
SetAxisTextSize(nAxisTextSize)
-
设置刻度标签字体大小
Parameters:
Name Type Description nAxisTextSize
Number 刻度标签字体大小 Properties:
Name Type Description AxisTextSize
Number 20 -
SetBackgroundColor(strColor)
-
设置背景颜色
Parameters:
Name Type Description strColor
String 背景颜色 Properties:
Name Type Description BackgroundColor
Color "0xff06122C" -
SetBackgroundColumnColor(strColor)
-
设置背景柱颜色
Parameters:
Name Type Description strColor
String 背景柱颜色 Properties:
Name Type Description BackgroundColumnColor
Color "0xff1C2C50" -
SetBackgroundColumnFillet(arrBackgroundColumnFillet)
-
设置背景柱圆角
Parameters:
Name Type Description arrBackgroundColumnFillet
Array 背景柱圆角 Properties:
Name Type Description BackgroundColumnFillet
Array [50,50,0,0] -
SetBackgroundColumnHeight(nMax)
-
设置背景柱高度
Parameters:
Name Type Description nMax
Number 最大值 Properties:
Name Type Description BackgroundColumnHeight
Number 15 -
SetBackgroundColumnSize(nBackgroundColumnSize)
-
设置背景柱宽
Parameters:
Name Type Description nBackgroundColumnSize
Number 背景柱宽 Properties:
Name Type Description BackgroundColumnSize
Number 40 -
SetBarSymbolSize(nWidth, nHeight)
-
设置柱体底部图片大小
Parameters:
Name Type Description nWidth
Number 宽度 nHeight
Number 高度 Properties:
Name Type Description BarSymbolSize
Collection [28,4] -
SetCategoryNames(arrCategoryNames)
-
设置类目名称
Parameters:
Name Type Description arrCategoryNames
Array 类目名称 Properties:
Name Type Description CategoryNames
Array ["陆军","海军","空军","火箭军","战略支援","武警"] -
SetColumnData(arrColumnData)
-
设置前置柱体数据内容
Parameters:
Name Type Description arrColumnData
Array 前置柱体数据内容 Properties:
Name Type Description ColumnData
Array [7,12,9,7,12,9] -
SetColumnFillet(arrColumnFillet)
-
设置前置柱体圆角
Parameters:
Name Type Description arrColumnFillet
Array 前置柱体圆角 Properties:
Name Type Description ColumnFillet
Array [50,50,0,0] -
SetColumnGap(strColumnGap)
-
设置柱间距离
Parameters:
Name Type Description strColumnGap
String 柱间距离 Properties:
Name Type Description ColumnGap
String "-100%" -
SetColumnGradation(strFirstColor, strSecondColor, nStart, nEnd)
-
设置前置柱体渐变色
Parameters:
Name Type Description strFirstColor
String 渐变色第一种颜色 strSecondColor
String 渐变色第二种颜色 nStart
Number 颜色起始位置 nEnd
Number 颜色结束位置 -
SetColumnMarkPointPosition(nHorPos, nVerPos)
-
设置标签位置
Parameters:
Name Type Description nHorPos
Number 水平位置 nVerPos
Number 垂直位置 Properties:
Name Type Description ColumnMarkPointPosition
Collection [35,0] -
SetColumnMarkPointSize(nWidth, nHeight)
-
设置标签大小
Parameters:
Name Type Description nWidth
Number 标签宽度 nHeight
Number 标签高度 Properties:
Name Type Description ColumnMarkPointSize
Collection [43,28] -
SetColumnMarkPointValueSize(nSize)
-
设置标签数据字体大小
Parameters:
Name Type Description nSize
Number 数据字体大小 Properties:
Name Type Description ColumnMarkPointValueSize
Number 22 -
SetColumnSize(nColumnSize)
-
设置前置柱体宽
Parameters:
Name Type Description nColumnSize
Number 前置柱体宽 Properties:
Name Type Description ColumnSize
Number 40 -
SetDataByIndex(nIndex, nData)
-
修改一组数据
Parameters:
Name Type Description nIndex
Number 索引 nData
Number 数据 Properties:
Name Type Description DataByIndex
Collection [0,7] -
SetSelect(nIndex)
-
设置选中显示
Parameters:
Name Type Description nIndex
Number 下标 -
SetxAxisNameAll(arrDataName)
-
修改X轴数据名字
Parameters:
Name Type Description arrDataName
Array X轴数据名字 Properties:
Name Type Description xAxisName
Array ["陆军", "海军", "空军", "火箭军", "战略支援", "武警"] -
SetxAxisNameByIndex(nIndex, strName)
-
修改X轴一组名字
Parameters:
Name Type Description nIndex
Number 索引 strName
String X轴名字 Properties:
Name Type Description xAxisNameByIndex
Collection [0,"陆军"]