new XUIStackedColumnChart()
Methods
-
AddNewGroupData(strObjectName, nIndex, arrSymbolData, strObjectColor)
-
添加一组数据
Parameters:
Name Type Description strObjectName
String 数组名字 nIndex
Number 添加的位置 arrSymbolData
Array 参数数据 strObjectColor
String 颜色 -
AddNewObject(strObjectName, nIndex, arrSymbolData)
-
添加一个对象
Parameters:
Name Type Description strObjectName
String 对象名字 nIndex
Number 添加的位置 arrSymbolData
Array 每种数据 -
ChangeGroupData(arrDataName)
-
清除每个对象的一组参数
Parameters:
Name Type Description arrDataName
String 参数名称 -
ChangeOneData(arrOneData, arrDataName)
-
修改一组对象数据
Parameters:
Name Type Description arrOneData
Array 一项数据 arrDataName
String 数据名称 -
DeleteAllData()
-
清除所有数据
-
DeleteData(arrDataName)
-
清除一项数据
Parameters:
Name Type Description arrDataName
Array 一项数据名称 -
GetBgColor() → {String}
-
获取背景色
Returns:
String -
GetGroupData(strObjectName)
-
获得每个对象的一组参数值
Parameters:
Name Type Description strObjectName
String 参数名字 -
GetObjectData(strObjectName)
-
获得一组对象数据
Parameters:
Name Type Description strObjectName
String 对象名字 -
GetXColor() → {String}
-
获取x轴颜色
Returns:
String -
GetXTextColor() → {String}
-
获取x轴文本颜色
Returns:
String -
GetXTextSize() → {Number}
-
获取x轴文本大小
Returns:
Number - } -
GetXWidth() → {Number}
-
获取x轴宽度
Returns:
Number -
GetYColor() → {String}
-
获取y轴颜色
Returns:
String -
GetYTextColor() → {String}
-
获取y轴文本颜色
Returns:
String -
GetYTextSize() → {String}
-
获取y轴文本大小
Returns:
String -
GetYWidth() → {Number}
-
获取y轴宽度
Returns:
Number -
SetBgColor(strBgColor)
-
背景颜色
Parameters:
Name Type Description strBgColor
String 背景颜色 Properties:
Name Type Description BgColor
Color "0xff0A181C" -
SetCtrlBgImg()
-
// * 背景图片 // * @param {ImageProp} strBgImg 背景图片 // * @property {ImageProp} CtrlBgImg "${exports.dir}images/bg.png" //
-
SetLegendText(nIndex, strText)
-
数据图例文字
Parameters:
Name Type Description nIndex
Number 索引 strText
String 标题文本 -
SetLegendTextColor(strColor)
-
数据图例文字颜色
Parameters:
Name Type Description strColor
String 背景颜色 Properties:
Name Type Description LegendTextColor
Color "0xff000000" -
SetLegendTextSize(nSize)
-
数据图例文字大小
Parameters:
Name Type Description nSize
Number 标题文字大小 Properties:
Name Type Description LegendTextSize
Number 20 -
SetPodetiumWidth(nPodetiumSize)
-
数据圆柱体宽度
Parameters:
Name Type Description nPodetiumSize
Number 柱体宽度 Properties:
Name Type Description PodetiumSize
Number 25 -
SetShowTitle(bVisible)
-
是否显示标题
Parameters:
Name Type Description bVisible
Boolean 是否显示 Properties:
Name Type Description ShowTitle
Boolean true -
SetShowX(bVisible)
-
是否显示X轴
Parameters:
Name Type Description bVisible
Boolean 是否显示 Properties:
Name Type Description ShowX
Boolean true -
SetShowY(bVisible)
-
是否显示Y轴
Parameters:
Name Type Description bVisible
Boolean 是否显示 Properties:
Name Type Description ShowY
Boolean true -
SetSymbolData(nIndex, arrSymbolData)
-
修改每个对象的一个参数值
Parameters:
Name Type Description nIndex
Number 内容分组下标 arrSymbolData
Array 内容数据 -
SetTitleColor(strColor)
-
标题颜色
Parameters:
Name Type Description strColor
String 标题颜色 Properties:
Name Type Description TitleColor
Color "0xffffffff" -
SetTitleSize(nSize)
-
标题大小
Parameters:
Name Type Description nSize
Number 标题文字尺寸 Properties:
Name Type Description TitleSize
Number 24 -
SetTitleText(strText)
-
标题文字
Parameters:
Name Type Description strText
String 标题文字 Properties:
Name Type Description TitleText
String "堆叠柱状图" -
SetXColor(strColor)
-
x轴颜色
Parameters:
Name Type Description strColor
String x轴颜色 Properties:
Name Type Description XColor
Color "0xffffffff" -
SetXTextColor(strColor)
-
x轴文本颜色
Parameters:
Name Type Description strColor
String x轴文本颜色 Properties:
Name Type Description XTextColor
Color "0xff0000ff" -
SetXTextSize(nSize)
-
x轴文本大小
Parameters:
Name Type Description nSize
Number x轴文本大小 Properties:
Name Type Description XTextSize
Number 16 -
SetXWidth(nWidth)
-
x轴宽度
Parameters:
Name Type Description nWidth
Number x轴宽度 Properties:
Name Type Description XWidth
Number 1 -
SetYColor(strColor)
-
y轴颜色
Parameters:
Name Type Description strColor
String y轴颜色 Properties:
Name Type Description YColor
Color "0xff065456" -
SetYTextColor(strColor)
-
y轴文本颜色
Parameters:
Name Type Description strColor
String x轴文本颜色 Properties:
Name Type Description YTextColor
Color "0xff859699" -
SetYTextSize(nSize)
-
y轴文本大小
Parameters:
Name Type Description nSize
Number x轴文本大小 Properties:
Name Type Description YTextSize
Number 12 -
SetYWidth(nWidth)
-
y轴宽度
Parameters:
Name Type Description nWidth
Number x轴宽度 Properties:
Name Type Description YWidth
Number 1