C# .NET - error in code - Asked By rehu on 07-Dec-10 04:54 AM

i am trying to get exponential growth of point once the series is drawn. 
 ArrayList arraygraphchange = new ArrayList();
 double typea = 0.0;
       
          for (int arraycount = 0; arraycount < test1.Count; arraycount++)
          {        
           selected= test1[arraycount].ToString();
           query = "select sum(table1." + selected + ") from table1";
           sql = lulc;
            cmd = new System.Data.SqlClient.SqlCommand(sql, con);
            typea = Convert.ToDouble(cmd.ExecuteScalar());
            arraygraphchange.Add(ltypea);
           }

Chart1.Width = 700;
      Chart1.Height = 600;
      Chart1.Series.Add("SERIES1");
      Chart1.Series.Add("SERIES3");
      Series series = Chart1.Series["SERIES1"];
      Series series2 = Chart1.Series["SERIES3"];
      Chart1.Series["SERIES1"].ChartType = SeriesChartType.Point;
      Chart1.Series["SERIES1"].Points.DataBindY(arraygraphchange);//working fine till here drawing points in graph
      Chart1.DataManipulator.FinancialFormula(FinancialFormula.Forecasting, "Exponential", series, series2);//giving error
      Chart1.Series["SERIES1"].ToolTip = "#VALY";
Balram Chavan replied to rehu on 07-Dec-10 04:56 AM
Please provide your error message
rehu replied to Balram Chavan on 07-Dec-10 05:22 AM
The number of output series and Y values is not correct.
Balram Chavan replied to rehu on 07-Dec-10 05:25 AM
check whether you number of values in series 1 and series 3 are same or not in your database. I guess this is the problem.
rehu replied to Balram Chavan on 07-Dec-10 05:57 AM
my problem is solved thnx
Balram Chavan replied to rehu on 07-Dec-10 06:00 AM
my pleasure :)