new XUIWeeklyDiary()
Methods
-
AddOneLineDataByIndex(nIndex, fData)
-
添加一个折线数据
Parameters:
Name Type Description nIndex
Number 索引下标 fData
Float 折线数据 -
AddXAxisLableData(strLabel)
-
添加x轴数据
Parameters:
Name Type Description strLabel
String 标签数据 -
DeleteLine(nIndex)
-
删除折线
Parameters:
Name Type Description nIndex
Number 索引下标 -
SetBottomSymbolNum(nValue)
-
设置长条数量
Parameters:
Name Type Description nValue
Number 长条数量 -
SetBottomSymbolOffset(nIndex, nValue)
-
底部小长条位置
Parameters:
Name Type Description nIndex
Number 索引下标 nValue
Number 水平位置 -
SetLineData(nIndex, arrData)
-
设置折线数据
Parameters:
Name Type Description nIndex
Number 索引下标 arrData
Array 折线数据 -
SetXAxisLableData(arrLabel)
-
设置x轴数据
Parameters:
Name Type Description arrLabel
Array 标签数据 Properties:
Name Type Description XAxisLableData
Array ["周一","周二", "周三", "周四", "周五", "周六", "周日"] -
SetYAxisMax(nIndex, nValue)
-
设置y轴最大值
Parameters:
Name Type Description nIndex
Number 索引下标 nValue
Number y轴最大值