I have a Give Below Code for
webchart.dll
webchart.dll
but i want same thing do in the RadChartnow how to do .. plzz help me out from this thing.. how to do with the radChart no external DataSource Wizard all things by the Coding only how to doColumnChart c = new ColumnChart();
c.MaxColumnWidth = 20;
c.Fill.Color = Color.Black;
c.Fill.ForeColor = Color.Blue;
c.Fill.Type = InteriorType.Hatch;
c.Fill.HatchStyle = HatchStyle.Cross;
c.Legend = "Date/Bill";
SqlConnection conn = new SqlConnection(@"Data Source=.\SQL2005;Initial Catalog=OrderProcessAutomation;Persist Security Info=True;User ID=sa;Password=123456");
conn.Open();
string qry = "Rpt_DailyBillTrend";
SqlCommand cmd = new SqlCommand(qry, conn);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("@FromDate", txtFromDate.Text);
cmd.Parameters.AddWithValue("@ToDate", txtToDate.Text);
c.DataSource = cmd.ExecuteReader();
c.DataXValueField = "Date";
c.DataYValueField = "BillCount";
c.DataBind();
conn.Close();
Chart1.Charts.Add(c);
Chart1.Charts.Add(new LineChart(c.Data, Color.Black));
Chart1.RedrawChart();