龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > web编程 > asp.net编程 >

Dundas Chart绘制图形之趋势线(2)

时间:2009-12-21 11:47来源:未知 作者:admin 点击:
分享到:
//错误写法 this.Chart1.DataManipulator.FormulaFinancial(FinancialFormula.Forecasting, "Linear,2,true,true", "Series1:Y", "Series2:Y"); //正确 this.Chart1.DataManipulator.FormulaFinancial(Financi

//错误写法

this.Chart1.DataManipulator.FormulaFinancial(FinancialFormula.Forecasting, "Linear,2,true,true", "Series1:Y", "Series2:Y");

//正确

this.Chart1.DataManipulator.FormulaFinancial(FinancialFormula.Forecasting, "Linear,2,true,true", "Series1:Y", "Series2:Y,Series2:Y2,Series2:Y3"); 

这里用到了四个参数:

第一个是选择的统计公式,可有好多种选择,具体不在细说,可以看帮助。

 

主说的是第二个参数和第四个参数:
第二个参数中第1项指定的是预测类型(Exponential、Logarithmic、Power和Linear)、第2项是预测的数据量(这里不光是趋势线,它还可以做预测,因此要填写预测的数据量)、第3项是是否填写被测数据误差、第4项是是否填写预测数据误差。

第四个参数是用来接收,通过对第二个参数的3,4项的了来看,输出中可以看到Series2:Y是第一个用来接收2个数据点预测的Y值,而被测数据误差和预测数据误差设置为接受,也要填写对应的数据项目来接收 ,否则会出错。


精彩图集

赞助商链接