XUIMixedLineBar()

Methods

AddOneBar(strName, arrData)

添加一组柱状图
Parameters:
Name Type Description
strName String x轴名称
arrData Array 柱状图数据

AddOneData(strName, nData1, nData2, nData3)

添加一条数据
Parameters:
Name Type Description
strName String x轴名称
nData1 Number 柱状图1数据
nData2 Number 柱状图2数据
nData3 Number 折线数据

AddOneLine(strName, arrData)

添加一组折线
Parameters:
Name Type Description
strName String x轴名称
arrData Array 折线数据

DelAllData()

删除全部数据

DelOneData(nIndex)

删除一条数据
Parameters:
Name Type Description
nIndex Number 索引

GetDataFirst() → {Array}

获取第一组柱状图数据
Returns:
Array - 数据值

GetDataFirstByIndex(nIndex) → {Number}

获取柱状图第一组数据通过索引
Parameters:
Name Type Description
nIndex Number 索引
Returns:
Number - 数据值

GetDataLine() → {Array}

获取折线数据
Returns:
Array - 数据值

GetDataLineByIndex(nIndex) → {Number}

获取折线数据通过索引
Parameters:
Name Type Description
nIndex Number 索引
Returns:
Number - 数据值

GetDataSecond() → {Array}

获取第二组柱状图数据
Returns:
Array - 数据值

GetDataSecondByIndex(nIndex) → {Number}

获取柱状图第二组数据通过索引
Parameters:
Name Type Description
nIndex Number 索引
Returns:
Number - 数据值

GetLegendDataAll() → {Array}

获取图例数据
Returns:
Array - 图例数据

GetLegendDataByIndex(nIndex) → {String}

获取图例数据通过索引
Parameters:
Name Type Description
nIndex Number 索引
Returns:
String - 图例数据

GetXAxisDataAll() → {Array}

获取X轴类目数据
Returns:
Array - X轴类目数据

GetXAxisDataByIndex(nIndex) → {String}

获取X轴类目数据通过索引
Parameters:
Name Type Description
nIndex Number 索引
Returns:
String - 数据值

SetDataByIndex(nIndex, nData1, nData2, nData3)

修改一组数据
Parameters:
Name Type Description
nIndex Number 索引
nData1 Number 柱状图1数据
nData2 Number 柱状图2数据
nData3 Number 折线数据
Properties:
Name Type Description
DataByIndex Collection [0,2.0,2.6,2.0]

SetDataFirst(arrData)

修改第一组柱状图数据
Parameters:
Name Type Description
arrData Array 柱状图数据
Properties:
Name Type Description
DataAll Array [2.0,4.9,7.0,23.2,25.6,76.7,135.6,162.2,32.6,20.0,6.4,3.3]

SetDataLine(arrData)

修改折线数据
Parameters:
Name Type Description
arrData Array 柱状图数据
Properties:
Name Type Description
DataLine Array [2.0,2.2,3.3,4.5,6.3,10.2,20.3,23.4,23.0,16.5,12.0,6.2]

SetDataSecond(arrData)

修改第二组柱状图数据
Parameters:
Name Type Description
arrData Array 柱状图数据
Properties:
Name Type Description
DataSecond Array [2.6,5.9,9.0,26.4,28.7,70.7,175.6,182.2,48.7,18.8,6.0,2.3]

SetLegendDataAll(arrData)

修改图例数据
Parameters:
Name Type Description
arrData Array 图例数据
Properties:
Name Type Description
LegendDataAll Array ["蒸发量","降水量","平均温度"]

SetLegendDataByIndex(nIndex, strData)

修改图例一条数据
Parameters:
Name Type Description
nIndex Number 索引
strData String 图例数据
Properties:
Name Type Description
LegendDataByIndex Collection [0,"蒸发量"]

SetXAxisDataAll(arrData)

修改X轴类目数据
Parameters:
Name Type Description
arrData Array X轴类目数据
Properties:
Name Type Description
XAxisDataAll Array ["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]

SetXAxisDataByIndex(nIndex, strData)

修改X轴类目一条名称
Parameters:
Name Type Description
nIndex Number 索引
strData String X轴类目名称
Properties:
Name Type Description
XAxisDataByIndex Collection [0,"1月"]