/**
* @constructor
*/
function XUIGradline() {
}
XUIGradline.prototype = {
//组件
/**
"xAxis":{
"title":"x轴",
"name":"xAxis",
"type":"PUIXAxisInterface",
"index":0
}*/
/**
"yAxis":{
"title":"y轴",
"name":"yAxis",
"type":"PUIYAxisInterface",
"index":0
}*/
/**
"Line":{
"title":"折线图",
"name":"Line",
"type":"PUILineInterface",
"index":0
}*/
/**
"Tooltip":{
"title":"提示框",
"name":"Tooltip",
"type":"PUITooltipInterface",
"index":0
}*/
/**
"Legend":{
"title":"图列",
"name":"Legend",
"type":"PUILegendInterface",
"index":0
}*/
/**
"Title":{
"title":"标题",
"name":"Title",
"type":"PUITitleInterface",
"index":0
}*/
//接口
/**
* 设置背景色
* @param {String} strColor 背景色
* @property {Color} BgColor "0xff09225B"
*/
SetBackgroundColor:function (strColor) {
},
/**
* 增加数据
* @param {Number} nIndex x轴添加数据
* @param {Number} nAddData y轴添加数据
* @property {Collection} AddDataByIndex [0, 0]
*/
SetAddDataByIndex:function (nIndex,nAddData) {
},
/**
* 设置一组数据
* @param {Array} arrData
* @property {Array} setArr [11, 16, 25, 12, 15, 22, 10, 13, 21, 16, 23]
*/
SetArrData:function (arrData) {
},
/**
* 设置X轴标签名称
* @param {Array} arrLab
* @property {Array} setArrLabel ["12:00","12:05","12:10","12:15","12:20","12:25","12:30","12:35","12:40","12:45","12:50"]
*/
SetxAxisLabel:function (arrLab) {
},
/**
* 设置标记点的数据
* @param {String} strLab
* @param {Number} nVal
*/
SetPointData:function (strLab,nVal) {
},
/**
* 添加一条折线
*/
AddLine:function () {
},
/**
* 设置所有折线不开启平滑处理
* @param {Boolean} bSmooth
* @property {Boolean} bSmoothLines false
*/
SetLinesSmooth:function (bSmooth) {
},
/**
* 是否开启平滑处理
* @return {Boolean}
*/
IsLinesSmooth:function () {
},
/**
* 设置数据按索引
* @param {Number} nIndex 索引从0开始
* @param {Array} arrData 数值
*/
SetDataByIndex:function (nIndex,arrData) {
},
/**
* 设置X轴和数据无留白
* @param {Boolean} bBoGap
* @property {Boolean} bXAxisBoGap false
*/
SetXAxisBoGap:function (bBoGap) {
},
/**
* x轴和数据是否有留白
* @return {Boolean}
*/
IsXAxisBoGap:function () {
},
/**
* 按索引设置标记点的大小
* @param {Array} arrSzie
* @property {Array} markPointSize [40,40]
*/
SetmarkPoint:function (arrSzie) {
},
/**
* 按索引设置折线的区域渐变
* @param {Number} nIndex 下标
* @param {String} strColor1 颜色1
* @param {String} strColor2 颜色2
* @param {String} strColor3 颜色3
*/
SetAreaColorByIndex:function (nIndex,strColor1,strColor2,strColor3) {
},
/**
* 按索引设置折线的渐变色
* @param {Number} nIndex
* @param {String} strColor1 颜色1
* @param {String} strColor2 颜色2
* @param {String} strColor3 颜色3
*/
SetLineGradient:function (nIndex,strColor1,strColor2,strColor3) {
},
/**
* 添加一条折线
* @param {String} strId 折线的唯一标记
* @param {String} strName 名称
*
*/
AddPolyLine:function (strId,strName) {
},
/**
* 索引添加图列
* @param {Number} nIndex
*/
AddLengendByIndex:function (nIndex) {
},
/**
* 设置X轴Y轴文本大小
* @param {Number} nXAxis X轴文本大小
* @param {Number} nYAxis Y轴文本大小
*/
SetXAxisYAxisSize:function (nXAxis,nYAxis) {
},
}